Skip to content

Commit

Permalink
improve data-manual web analytics attribute and remove dead code in t…
Browse files Browse the repository at this point in the history
…racker
  • Loading branch information
negrel committed Jul 22, 2024
1 parent 58aa427 commit 1f68114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/embedded/static/wa.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions tracker/web_analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// Path of current page.
var path = currentScriptDataset.path || loc.pathname;
// Enable/disable manual tracking.
var manual = !!currentScriptDataset.manual || false
var manual = (!!currentScriptDataset.manual && currentScriptDataset.manual !== "false") || false
// Visitor ID.
var visitorId = currentScriptDataset.visitorId;

Expand Down Expand Up @@ -54,9 +54,6 @@

if (options.visitorId) {
headers["X-Prisme-Visitor-Id"] = options.visitorId.toString()
if (options.anonymous == true) {
headers["X-Prisme-Visitor-Anon"] = "1"
}
}

return headers
Expand Down

0 comments on commit 1f68114

Please sign in to comment.