Did you ever get this to work in a way that would allow for explicit consent? There does not seem to be any way to use GA4 in consent mode with Substack, since all scripts are blocked in the data layer, so cannot use a custom or third party cookie banner etc.
I am surprised they have made compliance each publisher's "problem", yet have no mechanism for implementation that would allow for GDPR and other regulatory compliance.
Thanks for the sharing! But I got one issue with the GTM tags, I tried to setup a really simple one HTML tag, and it worked well on my other site but not on my substack post
Did you ever get this to work in a way that would allow for explicit consent? There does not seem to be any way to use GA4 in consent mode with Substack, since all scripts are blocked in the data layer, so cannot use a custom or third party cookie banner etc.
I am surprised they have made compliance each publisher's "problem", yet have no mechanism for implementation that would allow for GDPR and other regulatory compliance.
Thanks for the sharing! But I got one issue with the GTM tags, I tried to setup a really simple one HTML tag, and it worked well on my other site but not on my substack post
https://beyondspace-settings-ui.squarespace.com/?password=12345&noredirect=>m_debug=1678717234869
My substack post
https://bangank36.substack.com/p/customize-substack-with-gtm
I can see the correct gtm.js loaded on both sites, but in console only the first site has correct message.
My tag is HTML tag
`
<div> Voila Substack </div>
<script>
console.log('voila substack');
</script>
`
Trigger is Page View ( all page )
Let me get this straight.
1. You're not a subscriber
2. You're trying to write a Substack and teach people something you yourself can't figure out
3. The info is vaguely competitive to my Substack
Without a deep dive, I'm guessing the console.log() function is being blocked by the Substack platform.
I can't imagine they're blocking the code. I'm guessing you implemented it wrong. Try testing on GTM preview mode and/or another website.
If the tag fires in preview mode and the popup doesn't show, they're blocking it. If the tag doesn't fire at all, you likely implemented wrong.
Third option. Your cookie is already set in the browser you're testing and that's why it's not firing. Go incognito to test.
Then it has to be your trigger. What do you have it set to to trigger?
I'm not even seeing the GTM code on your Substack. Maybe because it's in "coming soon" mode?