Knowledgebase:
Change ga_tracking code to allow SearchSpring
Posted by on 30 June 2017 08:31 AM

Disclaimer

This will work for stores on Miva Version 9.0006 or higher. Note that this will require making template changes. Make sure you make sure you are aware of what version was active before any changes are made. These edits are low-risk but if you feel uncomfortable with making these changes then we advise you to seek help from a developer. 


 

Issue

The ga_Tracking code needs to be changed to allow SearchSpring

Solution:

The following is sample code that can be added to the Google Analytics Tracking Code template. This code needs to be modified.

 

<mvt:if expr="l.settings:page:code EQ 'SEARCH'">
ga( 'send', 'pageview');
<mvt:elseif expr="NOT g.UI_Exception">
ga( 'send', 'pageview', { 'page':'/<mvt:item name="ga_jsencode" param="ga_tracking:url_override_unencoded" />' } );
</mvt:if>

 

Remember to change 'SEARCH' to your search page code

 

Example:

 <mvt:if expr="l.settings:page:code EQ 'SRCH'">

 

(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako support.miva.com/supportsuite/index.php?