Skip to content

Commit

Permalink
Merge pull request #913 from afoucret/fix-tracking-params
Browse files Browse the repository at this point in the history
Tracking indexing fine tuning
  • Loading branch information
afoucret authored May 15, 2018
2 parents 00520cf + cdf4c05 commit 846cf53
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/module-elasticsuite-tracker/etc/elasticsuite_indices.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<field name="page.product.id" type="integer" />
<field name="page.product.sku" type="string">
<isSearchable>true</isSearchable>
<defaultSearchAnalyzer>whitespace</defaultSearchAnalyzer>
</field>
<field name="page.product.label" type="string">
<isSearchable>true</isSearchable>
Expand All @@ -67,6 +68,7 @@
<!-- Page data (searches) -->
<field name="page.search.query" type="string">
<isSearchable>true</isSearchable>
<isUsedForSortBy>true</isUsedForSortBy>
</field>
<field name="page.search.is_spellchecked" type="boolean" />

Expand Down Expand Up @@ -98,6 +100,12 @@
<field name="page.referrer.domain" type="string" />
<field name="page.referrer.page" type="string" />

<!-- Page data (campaign) -->
<field name="page.utm_source" type="string" />
<field name="page.utm_campaign" type="string" />
<field name="page.utm_medium" type="string" />
<field name="page.utm_term" type="string" />

<!-- Page data (resolution) -->
<field name="page.resolution.x" type="integer" />
<field name="page.resolution.y" type="integer" />
Expand All @@ -116,6 +124,7 @@
<field name="category_view" type="integer" />
<field name="search_query" type="string">
<isSearchable>true</isSearchable>
<isUsedForSortBy>true</isUsedForSortBy>
</field>
<field name="product_sale" type="integer" />
<field name="category_sale" type="integer" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ var smileTracker = (function () {
}

function addResolutionVars() {
this.addPageVar('resolution.X', window.screen.availWidth);
this.addPageVar('resolution.Y', window.screen.availHeight);
this.addPageVar('resolution.x', window.screen.availWidth);
this.addPageVar('resolution.y', window.screen.availHeight);
return this;
}

Expand Down

0 comments on commit 846cf53

Please sign in to comment.