Skip to main content

Hello.

Is it possible to set autocapture directly through the amplitude template in GTM? I can't find such an option. 

 

Hi Michał,

Thank you for your question!
This is Liping Yin from Amplitude Technical Support Team. I am happy to help!

May I know are you referring to server side GTM template or client side GTM template?

Looking forward to hearing from you!

Best regards,
Liping Yin | Technical Support Engineer
Amplitude


P.S. Checkout upcoming events and user meetups on our events page.

Hi Michał,

Thank you for your question!
This is Liping Yin from Amplitude Technical Support Team. I am happy to help!

May I know are you referring to server side GTM template or client side GTM template?

Looking forward to hearing from you!

Best regards,
Liping Yin | Technical Support Engineer
Amplitude


P.S. Checkout upcoming events and user meetups on our events page.


Hello there.

I’m referring to client side GTM template. I assume that I could just do this in GTM tag:
 

<script>
window.amplitude.init("AMPLITUDE_API_KEY", {
autocapture: { elementInteractions: true }
});
</script>

but I believe this is not the best way to do so.


Reply