logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
IDAutomation  
#1 Posted : Thursday, August 20, 2020 3:21:45 PM(UTC)
IDAutomation

Rank: Member

Groups: Authorized User, Developers
Joined: 11/13/2018(UTC)
Posts: 23

Thanks: 16 times
Was thanked: 1 time(s) in 1 post(s)
I am interested in consolidating all of our various tracking code into a single Google Tag container, but i'm not sure where to place the container ID. I am currently tracking using the Google Analytics Web Property ID, and that is in the appropriate field at /Admin/Store/Tracking :

Capture.PNG (21kb) downloaded 1 time(s).

Should I replace the Web Property ID with the Google Tag Container ID? I am nto sure how to proceed here. Please assist, thank you!

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

mazhar  
#2 Posted : Friday, August 21, 2020 5:15:11 AM(UTC)
mazhar

Rank: Administration

Groups: Admin, Administrators, HelpDesk, System, Authorized User, Developers, Registered
Joined: 10/5/2018(UTC)
Posts: 175

Thanks: 8 times
Was thanked: 17 time(s) in 15 post(s)
I am not sure about the exact requirement or a functionality you are after. Is there any documentation link from Google about it that has some guidelines?

If it only needs some javascript without any server side code then you can create an HTML snippet, put the script in it using its source view and then drop snippet in store footer. You can also remove the default Analytic Widget from footer.
shari  
#3 Posted : Friday, August 21, 2020 5:23:53 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
Quote:
Should I replace the Web Property ID with the Google Tag Container ID?

You cannot use Google Tag Container ID in place of Web property ID. Ablecommerce does not provide any widget for google tag container like Google Analytics.

To use Google Tag Container on your website, you must add a separate code snippet in page HTML. You can use Ablecommerce HTML snippet to place the script code in every page or alternatively a customized plugin can be created to replicate the Google Analytics widget functionality.

for HTML snippet, You can try following these steps:
1- Create a HTML Snippet (Admin - Website - HTML Snippets)
2- Copy the following JavaScript and add in HTML snippet, replacing GTM-XXXX with your container ID:
Code:
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXX');</script>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->


3- Now go to Admin - Website - Store Design - Widget Boards
4- Edit the Header Board that you are using across the site. (You have to repeat the following steps for each header board if you are using more than one for different pages)
5- Select Content tab and Enable editing by clicking Edit Content button
6- Select the HTML snippet tab from the left side bar
7- Drag your created HTML snippet and drop it any where in the board

This will render the Google Tag Container script on every page.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.