Can you kindly tell me how to do this?, just paste all the js google code?:It works for me...
Otherwise you can remove the old code in ACP and just paste the GA4 tag in PAGE_CONTAINER template between <head> tags
It does not work when I put the code I get this error:yep !
Yes:Are you sure the code is pated between the <head> tags in PAGE-CONTAINER template ?
{{ $xf.runJobs ? ' data-run-jobs=""' : '' }}>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2W50S2JLXB"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-2W50S2JLXB');
</script>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
These error messages appears in which moment ? When you save the template or when you try to reach your home page ?Oops! We ran into some problems.
Oops! We ran into some problems. Please try again later. More error details may be in the browser console.
When I save the templateThese error messages appears in which moment ? When you save the template or when you try to reach your home page ?
Could I modify the template locally with notepad and upload the template via ftp?, do you know where is the path of this template in the server public_html directory?Check the browser inspector (F12) then the Console tab.
I suspect there will be a 403 error which is due to the server - either modsec, or mod_evasive.
It is not automatic, you have to do it by yourself. When done you don't need to put the G4 code in PAGE_CONTAINER.Does it automatically associate itself to the old analytics?
Well I followed what this user suggested: https://xenforo.com/community/threads/add-google-analytics-4.187101/#post-1473377It is not automatic, you have to do it by yourself. When done you don't need to put the G4 code in PAGE_CONTAINER.
G-XXXXXXXXXWhich one? Which of the options worked for you?
When you sign up for google analytics during adding your domain and information. There is an advance link at the bottom. You click on that and select that you want to create both old UA and new G4 analytics ID’s. Then it created both. So I could use one or the other. So I just added the newest G-XXXXXXXX and it worked.Which one? Which of the options worked for you?
We use essential cookies to make this site work, and optional cookies to enhance your experience.