-
Notifications
You must be signed in to change notification settings - Fork 41
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
GTM Preview mode not supported? #21
Comments
Found the issue. I get a 403 when it is |
Hi Mark, please correct me if I'm wrong. The library only supports I also found that some browsers with adblockers block the |
This is very likely a result of my ignorance around Google services. I was unaware there was a difference. Perhaps the 403 I was getting was due to How involved of a process would it be to include GTM? I kinda see how it would be done from the Blazor-side of the Blazor-Analytics infrastructure but my experience with GTM is rather limited so I am oblivious to how much work would be required for the typescript wrapper. |
I also needed GTM support so I forked the repo and tried to support it. It is far to be perfect (for example variables to use in GTM for events and events name are hardcoded) but could be a starting point: https://github.com/pmonte/blazor-analytics |
This may be an issue separate from Blazor-Analytics (let me know if you agree). When trying to view the BlazorClient site in preview mode using GTM, the expected panel does not appear. Is this just an incompatibility with Blazor? I'm not sure if GTM needs to inject additional js to make this functionality work or if it is supposed to be included in the initial analytics scripts from the head element to insert the preview/debug iframe.
The text was updated successfully, but these errors were encountered: