Change in tracking managers


This page should only be used if the assisted migration script asks you to manually migrate code.20250516.WEB.Analytics

We've reorganized the tracking manager code so that it's no longer up to the graphic chart to say which manager is being used.

A view parameter has been added to the search service to enable or disable search tracking (only for the default search engine rendering).

If you've overloaded the search-service-tracking-js template , it's changed because it depends on the view parameter above.
In addition, you need to ask yourself whether you've changed the default parameters, otherwise you'll just have to delete the call.
Here's the kernel version:

<xsl:template name="search-service-tracking-js">
   <xsl:variable name="tracking" select="ametys:serviceViewParameter('activateSearchTracking')" />
   <xsl:if test="$tracking = 'true'">
       <xsl:call-template name="web-tracking-search" />
   </xsl:if>
</xsl:template>

And the default settings are :

<xsl:param name="textField"><xsl:value-of select="/search/form/fields/criterion[@definition = 'common$wording$textfield' or @definition = 'common$titleorwording$textfield']/@name" /></xsl:param>
<xsl:param name="categoryFields" >[<xsl:for-each select="/search/form/fields/criterion[enumeration]">"<xsl:value-of select="@name" />"<xsl:if test="position() != last()" >,</xsl:if></xsl:for-each>]</xsl:param>

 

 

 

 

 

 

 

Back to top