Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider alternatives to get information from JavaScript tracker #1085

Open
adatzer opened this issue Aug 4, 2022 · 0 comments
Open

Consider alternatives to get information from JavaScript tracker #1085

adatzer opened this issue Aug 4, 2022 · 0 comments
Labels
type:enhancement New features or improvements to existing features.

Comments

@adatzer
Copy link
Contributor

adatzer commented Aug 4, 2022

Is your feature request related to a problem? Please describe.
At the moment the way to get information (getDomainUserInfo, getUserId etc) from a JavaScript tracker is through callbacks. Tracker callbacks are called with the trackers dictionary as context. That way the callback can access the trackers dictionary using this.
However, this cannot be used when the JavaScript tracker is loaded in GTM:

  • in tag template code this is a reserved keyword
  • in custom HTML tags and in JS variables, this is not the trackers dictionary inside the callback

Describe the solution you'd like
A way to get information from a JavaScript tracker that is independent of this and possibly without providing access to trackers dictionary.
Even though this is currently a problem only when the JavaScript tracker is injected through this specific environment (GTM), providing an alternative way to get information from a JavaScript tracker may make sense in a wider scope.

@adatzer adatzer added the type:enhancement New features or improvements to existing features. label Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New features or improvements to existing features.
Projects
None yet
Development

No branches or pull requests

1 participant