Skip to content

Commit 53dadcc

Browse files
authored
update description to explain new URL parameters for conversion (#998)
1 parent 6666813 commit 53dadcc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

etc/adminhtml/system.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,9 @@
664664
<source_model>Algolia\AlgoliaSearch\Model\Source\ConversionAnalyticsMode</source_model>
665665
<comment>
666666
<![CDATA[
667-
Conversion is tracked when a product was found and clicked in search results and then added to cart / ordered.
667+
Conversion is tracked when a product was found and clicked in search results and then added to cart / ordered. </br></br>
668+
669+
If conversion is tracked, URL parameters will be appended to your searched product links. The `queryID` parameter is required for insights to tie a conversion event to a search. For best SEO practice, we recommend you to use canonical links for your product pages. You can enable this setting by going to <strong>Stores > Configuration > Catalog > Catalog > Search Engine Optimization > Use Canonical Link Meta Tag For Products</strong>.
668670
]]>
669671
</comment>
670672
<depends>

view/frontend/web/internals/common.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ requirejs(['algoliaBundle'], function(algoliaBundle) {
180180

181181
hit.urlForInsights = hit.url;
182182

183-
if (algoliaConfig.ccAnalytics.enabled) {
183+
if (algoliaConfig.ccAnalytics.enabled
184+
&& algoliaConfig.ccAnalytics.conversionAnalyticsMode !== 'disabled') {
184185
var insightsDataUrlString = $.param({
185186
queryID: hit.__queryID,
186187
objectID: hit.objectID,

0 commit comments

Comments
 (0)