0
Fixed

Looks like the "Inject" feature just adds the GTM snippet but does not fire a gtm.js event

Julius Fedorovicius 6 months ago in Tag Manager updated 6 months ago 4

The result: no Pageview event in the Preview and debug mode. This was tested on a website that had no GTM snippet (or dataLayer) added to the source code.

Answer

Answer
Fixed

Fixed for next release!
It was a matter of execution context - I had to review my approach slightly and it's even better now.

+1
Started

You are right! The Inject works fine when there's already a container, but not when there's nothing. Fixing this promptly!

Answer
Fixed

Fixed for next release!
It was a matter of execution context - I had to review my approach slightly and it's even better now.