Need to install code at beginning of body
Permalink Browser Info Environment
I need to install tag manager code at beginning of body. Where can I install this? I could not find the appropriate php file to edit with the <body>. Thanks in advance.
Type: | Ticket |
---|---|
Status: | Resolved |
So, I'm trying to ensure my Google Tag Manager is installed correctly. It says to put one code as high in the <head> of the page as possible, and the other code immediately after the opening <body> tag.
I currently have the first part of code in the <tracking codes> section now. I have been putting the second code in the first block I put on the page. I don't think that is what I should be doing.
I currently have the first part of code in the <tracking codes> section now. I have been putting the second code in the first block I put on the page. I don't think that is what I should be doing.
An alternative way, you can override themes/xw_replica_pro/elements/header_top.php file in order to put your custom scripts.
Make sure to put the override under application to avoid losing your changes when we update Replica Pro theme.
Make sure to put the override under application to avoid losing your changes when we update Replica Pro theme.
I modified the header and added the other script into tracking codes and it works perfectly. Thanks!
You can do that via dashboard.
Navigate to Dashboard > System & Settings > SEO & Statistics > Tracking Codes.
Put your code in the "Header Tracking Codes" Text area and save.
Kind regards,
Xanweb Support Team