adjust / web_sdk

40 stars 25 forks source link

Any chance to use adjust tag in google tag manager? #12

Closed alextorn closed 4 years ago

alextorn commented 4 years ago

Hey folks,

Is there any chance to integrate adjust with a google tag manager (GTM) on the web?

Thanks

YaraMatkova commented 4 years ago

Hi @alextorn,

Thank you for reaching out! Sorry for a long delay.

To use the SDK with GTM you can add a Custom HTML tag containing SDK loading snippet.

To initialize the SDK you can add another Custom HTML tag or just place Adjust.initSdk call right after the snippet and before </script> closing tag image

Please let me know if you have any questions.

liamtarpey commented 1 year ago

@YaraMatkova Do you have a detailed guide on how to send through custom events to Adjust from a Web-GTM container? (Essentially the Adjust.trackEvent() method) We currently have all of our marketing solutions sat behind GTM and would like to move Adjust to do the same.

We could write some Custom JS script that triggers the SDK (and checks it's been loaded first) but was wondering if there was a more elegant solution, like a built-in event or something.

Thanks!

YaraMatkova commented 1 year ago

Hey @liamtarpey, thank you for reaching out.

I think you could get a more detailed answer if you contact your Adjust Account Manager or Customer Success Manager.

As far as I aware there is no special elegant solution to make Web SDK events work with GTM, and most likely you have to use Custom JS scripts but you could trigger them on on built-in GTM events.

Feel free to comment if you have any further questions.