#Inertia SSR and Google Tag Manager (Facebook pixels, Google analytics)

1 messages · Page 1 of 1 (latest)

fresh merlin
#

Hello,

The question is how do I setup, Google Tag Managed to work with my Inertia SSR Application?

I did find this article: https://robindirksen.com/blog/inertiajs-track-analytics

But that is just in regard to Google Analytics. How would Facebook Pixel, Google Ads, and other Script inserted inside Google Tag Manager work? Is there any comprehensive article/solution out there?

I am trying to understand how it would all work together.

Thanks,

prisma moat
#

then the solution we use, is just add the gtag script in the app.blade.php

fresh merlin
#

@prisma moat but when the user changes routes, how would that work? How would it send facebook pixel and other scripts the info that the page changed and there is the new data

fresh merlin
#

hmm okay