Jump to content

Google Analytics ID question


foz

Recommended Posts

Running behind with this, my bad....

Can I ask, does the new GA4 ID simply replace the UA-xxxxxxxx code in Settings > Features ?

Not logged in to google analytics for a long time and I see I should be using a new tag.

If not how do I add this please?

CCV 6.2.5 - Custom Foundation 5 Skin v 3.3.0

Thanks in advance

 

Link to comment
Share on other sites

The SFWS products are not available anymore.

Without a copy, the best I can do is create a difference report, specific to what affected the GA code, for Foundation from the version that matches CC625 to the version that matches CC653, then we work on trying to apply those changes to the SFWS skin.

Link to comment
Share on other sites

Hi Brian

 

I would love to upgrade my small CubeCart store but I have 4 x SemperFIWebServices addons installed, not sure how far I can upgrade without breaking these and causing massive head ache for myself, main reason for wanting to upgrade CC is the PHP version:

Custom Foundation 5 Skin Configuration 

Homepage Featured Products

Site Messages

Special Content Boxes 

finally found my old login details :)

 

 

Link to comment
Share on other sites

This is what I want you to try. Go to CubeCart's Marketplace and download the Google Analytics plugin. You may prefer to use a Thunderbolt Icon token.

In CubeCart's admin, Store Settings, Features tab, blank the Google Analytics ID text field, Save.

In Manage Extensions, enter the Thunderbolt token value to fetch and install the plugin. Once installed, click the Edit icon to access the plugin's Settings page.

Hopefully, you have a GA code suitable for your purposes. Enter that code, click the Enable checkbox, and Save. Click the flashing orange button in the top-right corner to clear CubeCart's cache.

Test (as best you can).

 

 

Link to comment
Share on other sites

Hi Brian 

Thanks for your time replying, I have done as instructed, however the debug tag assistant 

https://tagassistant.google.com/

Does not seem to find the tag, fails with:

There are currently no debuggable Google tags at that address. Please verify that:

There is a Google tag on the page.

The Google tag is not a legacy tag. Learn more

The Google tag is not being blocked, e.g. by a browser extension or a consent dialog.

Link to comment
Share on other sites

Let's look at a couple of the skin's templates.

Look at the template main.php. Probably within the first 50 lines of HTML, there will be:

this:

{foreach from=$HEAD_JS item=js}{$js}{/foreach}

or this:

{include file='templates/element.js_head.php'}

If the template has the {include} statement, look for a template named element.js_head.php, or whatever the include file is.

In the GA plugin settings panel, there should be a checkbox that says "Collect Stats Regardless of Cookie Permission". This is necessary if, in admin, Store Settings, Extra tab, 'Cookie Compliance Dialog' setting, is not checked, then 'Collect Stats' must be checked.

Please give us a web address where we can look for the GA code.

 

Link to comment
Share on other sites

On line 22 I have 

{include file='templates/element.js_head.php'}

 

In element.js_head.php

{assign var=js_head value=[ 'skins/{$SKIN_FOLDER}/js/vendor/modernizr.js',
                            'skins/{$SKIN_FOLDER}/js/vendor/jquery.js']}
{combine input=$js_head output='cache/js_head.{$SKIN_FOLDER}.js' age='604800' debug=$CONFIG.debug||!$CONFIG.cache}
{foreach from=$HEAD_JS item=js}{$js}{/foreach}

 

Thanks Brian

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...