Google Tag Manager With @next/third-parties
Unanswered
Dwarf Crocodile posted this in #help-forum
Dwarf CrocodileOP
In my app's layout file, I have included google tag manager like this:
Now I want to include the dataLayer code as well in my layout file, which I don't understand how to do.
Now I want to include the dataLayer code as well in my layout file, which I don't understand how to do.
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-ID');