Integrating Findify Analytics
Access your website template through FTP.
- To integrate Findify Analytics on your product page and cart page, you must use your SFTP credentials, and open an FTP client such as FileZilla, to log into the file server and access your website template and asset files. So, download FileZilla Client and access the website template of your current theme.
- Once you access your website template through FileZilla, go to 'httpdocs' located on the bottom right box→ 'assets' → scroll down and click on ‘themes’.
- Under themes, select the current theme of your website template and continue to complete the following steps.
1. Add analytics tags to the Product Page
- Under the current theme, you selected, go to 'templates' → 'product' → find 'template.html' in the box below that displays all the files
- Insert one of the following snippets to the top of the ‘template.html’:
- If the product feed contains 'sku' from Neto as 'item_group_id' in Findify product feed, then insert this snippet:
<div data-findify-event="view-page" data-findify-item-id="[%if [@parent_sku@] ne '0' and [@parent_sku@] ne ''%][@parent_sku@][%else%][@sku@][%/if%]" data-findify-variant-item-id="[@sku@]"></div>
<div data-findify-filter="brand" data-findify-filter-value="[@brand@]"></div>
<div data-findify-filter="id" data-findify-filter-value="[%if [@parent_sku@] ne '0' and [@parent_sku@] ne ''%][@parent_sku@][%else%][@sku@][%/if%]"></div>
[%content_path id:'[@inventory_id@]' type:'category' limit: '1' %]\
[%param *body%]
[%set [@current_path@]%][@content_name@][%/set%]
[%content_path content_id:'[@content_id@]' show_path:'y' type:'category' %]
[%param *body%]
[%if [@^content_id@] ne [@content_id@]%]
[%set [@^current_path@]%][@content_name@] > [@^current_path@][%/set%]
[%/if%]
[%/param%]
[%/content_path%]
<div data-findify-filter="category" data-findify-filter-value="[@current_path@]"></div>
[%/param%]
[%/content_path%]
<div data-findify-event="update-cart">
[%cart_items%]
[%param *body%]
<div data-findify-item-id="[%if [@parent_sku@] ne '0' and [@parent_sku@] ne ''%][@parent_sku@][%else%][@sku@][%/if%]" data-findify-variant-item-id="[@sku@]" data-findify-unit-price="[@price@]" data-findify-quantity="[@qty@]"></div>
[%/param%]
[%/cart_items%]
</div>
- If the product feed contains 'inventory_id' from Neto as 'item_group_id' in Findify product feed, then insert this snippet:
<div data-findify-event="view-page" data-findify-item-id="[%if [@parent_inventory_id@] ne '0' and [@parent_inventory_id@] ne ''%][@parent_inventory_id@][%else%][@inventory_id@][%/if%]" data-findify-variant-item-id="[%if [@parent_sku@] ne '0' and [@parent_sku@] ne ''%][@parent_sku@][%else%][@sku@][%/if%]"></div>
<div data-findify-filter="brand" data-findify-filter-value="[@brand@]"></div>
<div data-findify-filter="id" data-findify-filter-value="[%if [@parent_inventory_id@] ne '0' and [@parent_inventory_id@] ne ''%][@parent_inventory_id@][%else%][@inventory_id@][%/if%]"></div>
[%content_path id:'[@inventory_id@]' type:'category' limit: '1' %]\
[%param *body%]
[%set [@current_path@]%][@content_name@][%/set%]
[%content_path content_id:'[@content_id@]' show_path:'y' type:'category' %]
[%param *body%]
[%if [@^content_id@] ne [@content_id@]%]
[%set [@^current_path@]%][@content_name@] > [@^current_path@][%/set%]
[%/if%]
[%/param%]
[%/content_path%]
<div data-findify-filter="category" data-findify-filter-value="[@current_path@]"></div>
[%/param%]
[%/content_path%]
<div data-findify-event="update-cart">
[%cart_items%]
[%param *body%]
<div data-findify-item-id="[%if [@parent_inventory_id@] ne '0' and [@parent_inventory_id@] ne ''%][@parent_inventory_id@][%else%][@inventory_id@][%/if%]" data-findify-variant-item-id="[%if [@parent_sku@] ne '0' and [@parent_sku@] ne ''%][@parent_sku@][%else%][@sku@][%/if%]" data-findify-unit-price="[@price@]" data-findify-quantity="[@qty@]"></div>
[%/param%]
[%/cart_items%]
</div>
2. Add 'update-cart' tags to the Cart Page
- Open the theme folder of the current theme you are using and go to 'templates' → 'cart' → 'shopping_cart.template.html'
- Insert one of the following snippets to the top of the ‘shopping_cart.template.html’ :
- If the product feed contains 'sku' from Neto as 'item_group_id' in Findify product feed, then insert this snippet:
<div data-findify-event="update-cart">
[%cart_items%]
[%param *body%]
<div data-findify-item-id="[%if [@parent_sku@] ne '0' and [@parent_sku@] ne ''%][@parent_sku@][%else%][@sku@][%/if%]" data-findify-variant-item-id="[@sku@]" data-findify-unit-price="[@price@]" data-findify-quantity="[@qty@]"></div>
[%/param%]
[%/cart_items%]
</div>
<div data-findify-filter="id" data-findify-filter-value='[[%cart_items%][%param *body%][%if [@count@]%],[%/if%]{ "value": ["[%if [@parent_sku@] ne "0" and [@parent_sku@] ne "" %][@parent_sku@][%else%][@sku@][%/if%]"] }[%/param%][%/cart_items%]]'></div>
- If the product feed contains 'inventory_id' from Neto as 'item_group_id' in Findify product feed, then insert this snippet:
<div data-findify-event="update-cart">
[%cart_items%]
[%param *body%]
<div data-findify-item-id="[%if [@parent_inventory_id@] ne '0' and [@parent_inventory_id@] ne ''%][@parent_inventory_id@][%else%][@inventory_id@][%/if%]" data-findify-variant-item-id="[@sku@]" data-findify-unit-price="[@price@]" data-findify-quantity="[@qty@]"></div>
[%/param%]
[%/cart_items%]
</div>
<div data-findify-filter="id" data-findify-filter-value='[[%cart_items%][%param *body%][%if [@count@]%],[%/if%]{ "value": ["[%if [@parent_inventory_id@] ne '0' and [@parent_inventory_id@] ne ''%][@parent_inventory_id@][%else%][@inventory_id@][%/if%]"] }[%/param%][%/cart_items%]]'></div>
3. Add 'purchase-tracking' tags
- Open your Neto admin panel and go to 'Settings & tools' → 'All settings & tools'.
- Scroll down to Analytics & 3rd Party Scripts and click on 'Custom Scripts'.
- Click on 'Add New' located on the top right of your dashboard.
- Name custom script: 'Findify Revenue Tracking' and leave all 'keys' empty.
- Go to 'Purchase Confirmation (Thank You Page)' tab which is the fourth tab and insert the snippet below in space available under Scripts:
Snippets:
- If the product feed contains 'sku' from Neto as 'item_group_id' in Findify product feed, then insert this snippet:
[%SHOW_ORDER id:'[@ORDER_ID@]'%]
[%PARAM *header%]
<div data-findify-event="purchase" data-findify-order-id="[@ORDER_ID@]" data-findify-currency="AUD" data-findify-revenue="[@GRAND_TOTAL@]">
[%END PARAM%]
[%PARAM *body%]
<div data-findify-item-id="[%if [@parent_sku@] ne '0' and [@parent_sku@] ne ''%][@parent_sku@][%else%][@sku@][%/if%]" data-findify-variant-item-id="[@sku@]" data-findify-unit-price="[@price@]" data-findify-quantity="[@qty@]"></div>
[%END PARAM%]
[%PARAM *footer%]
</div>
[%END PARAM%]
[%END SHOW_ORDER%]
- If the product feed contains 'inventory_id' from Neto as 'item_group_id' in Findify product feed, then insert this snippet:
[%SHOW_ORDER id:'[@ORDER_ID@]'%]
[%PARAM *header%]
<div data-findify-event="purchase" data-findify-order-id="[@ORDER_ID@]" data-findify-currency="AUD" data-findify-revenue="[@GRAND_TOTAL@]">
[%END PARAM%]
[%PARAM *body%]
<div data-findify-item-id="[%if [@parent_inventory_id@] ne '0' and [@parent_inventory_id@] ne ''%][@parent_inventory_id@][%else%][@inventory_id@][%/if%]" data-findify-variant-item-id="[%if [@parent_sku@] ne '0' and [@parent_sku@] ne ''%][@parent_sku@][%else%][@sku@][%/if%]" data-findify-unit-price="[@price@]" data-findify-quantity="[@qty@]"></div>
[%END PARAM%]
[%PARAM *footer%]
</div>
[%END PARAM%]
[%END SHOW_ORDER%]
Please, make sure if the 'Purchase Confirmation (Thank You Page)' has Findify script in place. If not, then you would need to add right before all of the tags:
<script src="//findify-assets-2bveeb6u8ag.netdna-ssl.com/search/prod/your_store_name.min.js async defer></script>
[%SHOW_ORDER id:'[@ORDER_ID@]'%]
[%PARAM *header%]
<div data-findify-event="purchase" data-findify-order-id="[@ORDER_ID@]" data-findify-currency="AUD" data-findify-revenue="[@GRAND_TOTAL@]">
[%END PARAM%]
[%PARAM *body%]
<div data-findify-item-id="[%if [@parent_sku@] ne '0' and [@parent_sku@] ne ''%][@parent_sku@][%else%][@sku@][%/if%]" data-findify-variant-item-id="[@sku@]" data-findify-unit-price="[@price@]" data-findify-quantity="[@qty@]"></div>
[%END PARAM%]
[%PARAM *footer%]
</div>
[%END PARAM%]
[%END SHOW_ORDER%]
Help
For further help, feel free to email [email protected]
Updated almost 4 years ago