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

Integration with Partytown #365

Open
epigeyre opened this issue Aug 12, 2024 · 0 comments
Open

Integration with Partytown #365

epigeyre opened this issue Aug 12, 2024 · 0 comments

Comments

@epigeyre
Copy link

epigeyre commented Aug 12, 2024

Hi,

I am trying to integrate Partytown to load GTM but I can't find a way to properly edit the data attributes of the main GTM script. I need to add the type attribute (type="text/partytown").

image

It would be easy if the main script was loaded by wp_enqueue_script() but it does not seem to be the case. What would be the best way to do it?

Thanks for your help!

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

1 participant