Google Universal Analytics stopping from July 1st
- tacnet
- Board Sponsor

- Posts: 3641
- Joined: February 22nd, 2019, 7:21 pm
- Referrals: 9
- Contact:
Google Universal Analytics stopping from July 1st
Just incase you missed this, Google's UA Analytics is stopping processing data from July 1st. You need to upgrade to Google Analytics 4 before then. Details are in your analytics profile
If you've already done it, what do you think of GA4 ???
Seems a lot more complicated to me but maybe I just need to get used to it
If you've already done it, what do you think of GA4 ???
Seems a lot more complicated to me but maybe I just need to get used to it
-
razor
- Verified Member

- Posts: 1656
- Joined: March 4th, 2018, 8:34 am
I posted this 725M Meta class action suit settlement news as you posted this one
viewtopic.php?f=74&t=7782

viewtopic.php?f=74&t=7782
- tacnet
- Board Sponsor

- Posts: 3641
- Joined: February 22nd, 2019, 7:21 pm
- Referrals: 9
- Contact:
Hey Razor. Yeah I saw that. Interesting but think we are talking about two different things ? Unless ive miss read your postrazor wrote: ↑April 23rd, 2023, 9:41 amI posted this 725M Meta class action suit settlement news as you posted this one
viewtopic.php?f=74&t=7782
![]()
-
razor
- Verified Member

- Posts: 1656
- Joined: March 4th, 2018, 8:34 am
I need to stop posting before my 2nd cup of coffee kicks in, sorry man, you are right I misread the title.
Going to make my 2nd cup of coffee
Going to make my 2nd cup of coffee
- tacnet
- Board Sponsor

- Posts: 3641
- Joined: February 22nd, 2019, 7:21 pm
- Referrals: 9
- Contact:
Ha ha. No worries man, I know just how you feel
- TheButcher
- Administrator

- Posts: 17530
- Joined: February 2nd, 2018, 11:48 am
- Title: I like weekends
- Referrals: 1
- Contact:
No worries glad you're posting here on Sunday morning boss.
Peace
- jag
- Verified Member

- Posts: 6539
- Joined: February 15th, 2018, 9:51 am
- Title: From Malta with love
- Referrals: 1
When I had sites I always used GA
From Malta with love and sunshine
-
fetishnews
- Verified Member

- Posts: 1336
- Joined: February 16th, 2018, 6:30 pm
Going to give it a shot this weekend let's see how it goes.
- AlexO
- Verified Member

- Posts: 6403
- Joined: February 10th, 2018, 5:37 pm
- Title: I like Celebrities
Have to do the change no other choice wish me luck
Give me celebrity porn 
- tacnet
- Board Sponsor

- Posts: 3641
- Joined: February 22nd, 2019, 7:21 pm
- Referrals: 9
- Contact:
Here is something you might find useful
The GA4 javascript tag can really slow down your page speed, especially if you put it at the top of the page like google suggests. Another option is to use the code below just before your </body> tag.
This code will load the GA4 script when the user scrolls, moves the mouse or touches the screen. If none of those, it will load the script after 2 seconds
If the page closes before 2 seconds then it wont fire but you dont really care about those hits
Replace XXXXXXXXXX with your GA4 ID
The GA4 javascript tag can really slow down your page speed, especially if you put it at the top of the page like google suggests. Another option is to use the code below just before your </body> tag.
This code will load the GA4 script when the user scrolls, moves the mouse or touches the screen. If none of those, it will load the script after 2 seconds
If the page closes before 2 seconds then it wont fire but you dont really care about those hits
Replace XXXXXXXXXX with your GA4 ID
Code: Select all
<script>
// Load the script after the user scrolls, moves the mouse, or touches the screen
document.addEventListener('scroll', initGTMOnEvent);
document.addEventListener('mousemove', initGTMOnEvent);
document.addEventListener('touchstart', initGTMOnEvent);
// Or, load the script after 2 seconds
document.addEventListener('DOMContentLoaded', () => { setTimeout(initGTM, 2000); });
// Initializes Google Tag Manager in response to an event
function initGTMOnEvent (event) {
initGTM();
event.currentTarget.removeEventListener(event.type, initGTMOnEvent);
}
// Initializes Google Tag Manager
function initGTM () {
if (window.gtmDidInit) {
// Don't load again
return false;
}
window.gtmDidInit = true;
// Create the script
const script = document.createElement('script');
script.type = 'text/javascript';
script.onload = () => {
window.dataLayer = window.dataLayer || [];
function gtag(){ dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX');
}
script.src = 'https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX';
// We are still deferring the script
script.defer = true;
// Append the script to the body of the document
document.getElementsByTagName('body')[0].appendChild(script);
}
</script>-
Emil
- Verified Member

- Posts: 1346
- Joined: April 9th, 2018, 7:43 am
It is a lot more complicated but it will be better overalltacnet wrote: ↑April 23rd, 2023, 9:39 amJust incase you missed this, Google's UA Analytics is stopping processing data from July 1st. You need to upgrade to Google Analytics 4 before then. Details are in your analytics profile
If you've already done it, what do you think of GA4 ???
Seems a lot more complicated to me but maybe I just need to get used to it
- BrasSmonkey
- Verified Member

- Posts: 7893
- Joined: February 28th, 2018, 6:31 pm
- Title: Smell My Sack
- Referrals: 1
- Contact:
facebook is the new orangetacnet wrote: ↑April 23rd, 2023, 9:49 amHey Razor. Yeah I saw that. Interesting but think we are talking about two different things ? Unless ive miss read your postrazor wrote: ↑April 23rd, 2023, 9:41 amI posted this 725M Meta class action suit settlement news as you posted this one
https://www.sponsorchat.com/viewtopic.php?f=74&t=7782
![]()
THE LAKEN RILEY ACT IS NOW LAW!!! TRUMP 2025!!!
DACA HAS ENDED!!! email: brassballz-@-techie.com
DACA HAS ENDED!!! email: brassballz-@-techie.com
-
24alex
- Verified Member

- Posts: 2116
- Joined: March 2nd, 2018, 12:51 pm
- Referrals: 21
tacnet wrote: ↑April 26th, 2023, 10:01 amHere is something you might find useful
The GA4 javascript tag can really slow down your page speed, especially if you put it at the top of the page like google suggests. Another option is to use the code below just before your </body> tag.
This code will load the GA4 script when the user scrolls, moves the mouse or touches the screen. If none of those, it will load the script after 2 seconds
If the page closes before 2 seconds then it wont fire but you dont really care about those hits
Replace XXXXXXXXXX with your GA4 ID
Code: Select all
<script> // Load the script after the user scrolls, moves the mouse, or touches the screen document.addEventListener('scroll', initGTMOnEvent); document.addEventListener('mousemove', initGTMOnEvent); document.addEventListener('touchstart', initGTMOnEvent); // Or, load the script after 2 seconds document.addEventListener('DOMContentLoaded', () => { setTimeout(initGTM, 2000); }); // Initializes Google Tag Manager in response to an event function initGTMOnEvent (event) { initGTM(); event.currentTarget.removeEventListener(event.type, initGTMOnEvent); } // Initializes Google Tag Manager function initGTM () { if (window.gtmDidInit) { // Don't load again return false; } window.gtmDidInit = true; // Create the script const script = document.createElement('script'); script.type = 'text/javascript'; script.onload = () => { window.dataLayer = window.dataLayer || []; function gtag(){ dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'G-XXXXXXXXXX'); } script.src = 'https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX'; // We are still deferring the script script.defer = true; // Append the script to the body of the document document.getElementsByTagName('body')[0].appendChild(script); } </script>
Will that script impact the accuracy of GA4?
- tacnet
- Board Sponsor

- Posts: 3641
- Joined: February 22nd, 2019, 7:21 pm
- Referrals: 9
- Contact:
No. I wont count anybody who closes the window within 2 seconds but you dont really care about those hits anyway24alex wrote: ↑April 28th, 2023, 5:19 pmtacnet wrote: ↑April 26th, 2023, 10:01 amHere is something you might find useful
The GA4 javascript tag can really slow down your page speed, especially if you put it at the top of the page like google suggests. Another option is to use the code below just before your </body> tag.
This code will load the GA4 script when the user scrolls, moves the mouse or touches the screen. If none of those, it will load the script after 2 seconds
If the page closes before 2 seconds then it wont fire but you dont really care about those hits
Replace XXXXXXXXXX with your GA4 ID
Code: Select all
<script> // Load the script after the user scrolls, moves the mouse, or touches the screen document.addEventListener('scroll', initGTMOnEvent); document.addEventListener('mousemove', initGTMOnEvent); document.addEventListener('touchstart', initGTMOnEvent); // Or, load the script after 2 seconds document.addEventListener('DOMContentLoaded', () => { setTimeout(initGTM, 2000); }); // Initializes Google Tag Manager in response to an event function initGTMOnEvent (event) { initGTM(); event.currentTarget.removeEventListener(event.type, initGTMOnEvent); } // Initializes Google Tag Manager function initGTM () { if (window.gtmDidInit) { // Don't load again return false; } window.gtmDidInit = true; // Create the script const script = document.createElement('script'); script.type = 'text/javascript'; script.onload = () => { window.dataLayer = window.dataLayer || []; function gtag(){ dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'G-XXXXXXXXXX'); } script.src = 'https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX'; // We are still deferring the script script.defer = true; // Append the script to the body of the document document.getElementsByTagName('body')[0].appendChild(script); } </script>
Will that script impact the accuracy of GA4?
-
Wade
- New Member

- Posts: 19
- Joined: August 25th, 2022, 5:24 am
question how long do bots hang around on a page?tacnet wrote: ↑April 28th, 2023, 5:39 pmNo. I wont count anybody who closes the window within 2 seconds but you dont really care about those hits anyway24alex wrote: ↑April 28th, 2023, 5:19 pmtacnet wrote: ↑April 26th, 2023, 10:01 amHere is something you might find useful
The GA4 javascript tag can really slow down your page speed, especially if you put it at the top of the page like google suggests. Another option is to use the code below just before your </body> tag.
This code will load the GA4 script when the user scrolls, moves the mouse or touches the screen. If none of those, it will load the script after 2 seconds
If the page closes before 2 seconds then it wont fire but you dont really care about those hits
Replace XXXXXXXXXX with your GA4 ID
Code: Select all
<script> // Load the script after the user scrolls, moves the mouse, or touches the screen document.addEventListener('scroll', initGTMOnEvent); document.addEventListener('mousemove', initGTMOnEvent); document.addEventListener('touchstart', initGTMOnEvent); // Or, load the script after 2 seconds document.addEventListener('DOMContentLoaded', () => { setTimeout(initGTM, 2000); }); // Initializes Google Tag Manager in response to an event function initGTMOnEvent (event) { initGTM(); event.currentTarget.removeEventListener(event.type, initGTMOnEvent); } // Initializes Google Tag Manager function initGTM () { if (window.gtmDidInit) { // Don't load again return false; } window.gtmDidInit = true; // Create the script const script = document.createElement('script'); script.type = 'text/javascript'; script.onload = () => { window.dataLayer = window.dataLayer || []; function gtag(){ dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'G-XXXXXXXXXX'); } script.src = 'https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX'; // We are still deferring the script script.defer = true; // Append the script to the body of the document document.getElementsByTagName('body')[0].appendChild(script); } </script>
Will that script impact the accuracy of GA4?