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

Automatically load TikTok base pixel #18

Open
luukfiets opened this issue May 28, 2024 · 2 comments
Open

Automatically load TikTok base pixel #18

luukfiets opened this issue May 28, 2024 · 2 comments

Comments

@luukfiets
Copy link

Currently this tag template only checks whether the base tag is present but doesn't load the base tag in case it was not found. It would be really useful if the tiktok base pixel would be injected if it was not found, just like the Meta tag template does.

Please let me know if I can help with setting this up. I'm happy to suggest the required changes.

@tt-hubenlin
Copy link
Contributor

Thank you for your suggestion. Currently our GTM interactive setup flow will help users install base-code tags and template tags. Could you provide the link to the tag template you mentioned? We will carefully evaluate the benefits and other impacts of providing this feature.

@luukfiets
Copy link
Author

@tt-hubenlin, of course: on these lines the Facebook tag template checks whether the fbq library is already loaded: https://github.com/facebookarchive/GoogleTagManager-WebTemplate-For-FacebookPixel/blob/main/template.tpl#L548-L553.

If it's not loaded yet, it initiates the pixel (first loading consent status before actually injecting the tracking script) and then loads the actual script: https://github.com/facebookarchive/GoogleTagManager-WebTemplate-For-FacebookPixel/blob/main/template.tpl#L555-L619.

This setup makes it easier to set up the pixel for non-tech savvy users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants