Skip to content

Commit

Permalink
fix: 🐛 missing analyticsParams feature
Browse files Browse the repository at this point in the history
this repo is source of truth, not analytics_flask. Now we synced
analytics_flask tracker/src/plausible.js
  • Loading branch information
karlosmid committed Jan 30, 2025
1 parent 6ebced4 commit bfc8e5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion priv/tracker/js/plausible.live-view.js

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

2 changes: 1 addition & 1 deletion tracker/src/plausible.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
if (window.liveSocket)
window.liveSocket.socket.logger = (kind, msg, data) => {
if ((kind === 'push') && !msg.includes("phoenix heartbeat")){
trigger('phx-push', {props: {msg, ...data}});
trigger('phx-push', {props: {msg, ...(window.analyticsParams || {}), ...data}});
}
}
else
Expand Down

0 comments on commit bfc8e5a

Please sign in to comment.