Hello,
what is the best way to create Google Tag module as module or as a hook?
the Google recommends putting GTM code :
one code as high in the <head> and another code right after opening <body> tag
does anyone has create Google Tag module?
Br
Omar
Google Tag module
-
LeeFoster
- Contributor
- Posts: 263
- Joined: Sun Feb 28, 2021 9:41 pm
- Phoenix Version: v1.0.8.20
- Has thanked: 1 time
- Been thanked: 5 times
-
Omar_one
- Senior Contributor
- Posts: 679
- Joined: Fri Oct 25, 2019 5:06 pm
- Phoenix Version: v1.0.8.16
- Has thanked: 100 times
- Been thanked: 56 times
Re: Google Tag module
Thank you @LeeFosterLeeFoster wrote: ↑Fri Feb 24, 2023 3:17 pm @zipurman created this one.
app.php/addons/paid_addon/google_analytics_4/
I have that module .. now I am confuse.. as always
I was think its need different module?!!
thank you
-
LeeFoster
- Contributor
- Posts: 263
- Joined: Sun Feb 28, 2021 9:41 pm
- Phoenix Version: v1.0.8.20
- Has thanked: 1 time
- Been thanked: 5 times
Re: Google Tag module
I don't have that module so can't confirm, I am assuming you are using it for Google analytics tracking thoughOmar_one wrote: ↑Fri Feb 24, 2023 3:33 pmThank you @LeeFosterLeeFoster wrote: ↑Fri Feb 24, 2023 3:17 pm @zipurman created this one.
app.php/addons/paid_addon/google_analytics_4/
I have that module .. now I am confuse.. as always![]()
...
I was think its need different module?!!
thank you
-
Yahalimu
- Member
- Posts: 29
- Joined: Mon Oct 26, 2020 1:27 pm
- Phoenix Version: v1.0.5.0
- Has thanked: 4 times
- Been thanked: 1 time
Re: Google Tag module
Hello,
I think I hard coded the GTM and put in in the <body> area.
EU GDPR rules specify if the user does not specifically allow 'un-necessary' cookies via a cookie warning, the google analytics code should not be active. (Very few sites seem to implement this).
If set correctly the GTM is one way to switch off all tracking cookies if not allowed by the site visitor.
Its a real pain to set up to be honest.
I think I hard coded the GTM and put in in the <body> area.
EU GDPR rules specify if the user does not specifically allow 'un-necessary' cookies via a cookie warning, the google analytics code should not be active. (Very few sites seem to implement this).
If set correctly the GTM is one way to switch off all tracking cookies if not allowed by the site visitor.
Its a real pain to set up to be honest.