Integrating Findify Analytics
To integrate Findify Analytics follow these steps:
- Getting Started
- Add analytics tags to the Product Page
- Add 'update-cart' tags to the Cart Page
- Add 'purchase-tracking' tags
Step 1: Getting Started
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.
![AN_1.png 1170](https://files.readme.io/69ecee5-AN_1.png)
- Once you access your website template through FileZilla, go to 'httpdocs' located on the bottom right box→ 'assets' → scroll down and click on ‘themes’.
![AN_2.png 574](https://files.readme.io/02c56fd-AN_2.png)
- Under themes, select the current theme of your website template and continue to complete the following steps.
Step 2: 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
![AN_3.png 752](https://files.readme.io/1d52e9e-AN_3.png)
- Insert one of the following snippets to the top of the ‘template.html’:
- If the product feed contains 'sku' from Maropost Commerce Cloud 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 Maropost Commerce Cloud 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>
Step 3: 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'
![AN_4.png 719](https://files.readme.io/ef820e1-AN_4.png)
- Insert one of the following snippets to the top of the ‘shopping_cart.template.html’ :
- If the product feed contains 'sku' from Maropost Commerce Cloud 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>
- If the product feed contains 'inventory_id' from Maropost Commerce Cloud 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>
Step 4: Add 'purchase-tracking' tags
- Open your Maropost Commerce Cloud admin panel and go to 'Settings & tools' → 'All settings & tools'.
![4.png 755](https://files.readme.io/8ef91b0-4.png)
- Scroll down to Analytics & 3rd Party Scripts and click on 'Custom Scripts'.
![analytics_4.png 1600](https://files.readme.io/1c30287-analytics_4.png)
- Click on 'Add New' located on the top right of your dashboard.
![analytics_5.png 1600](https://files.readme.io/ef366bb-analytics_5.png)
- Name custom script: 'Findify Revenue Tracking' and leave all 'keys' empty.
![analytics_6.png 1600](https://files.readme.io/0470f01-analytics_6.png)
- Go to the 'Purchase Confirmation (Thank You Page)' tab which is the fourth tab and insert the snippet below in the space available under Scripts:
![analytics_7.png 1600](https://files.readme.io/4d7d3e0-analytics_7.png)
Snippets:
- If the product feed contains 'sku' from Maropost Commerce Cloud as 'item_group_id' in Findify product feed, then insert this snippet:
<script src="//assets.findify.io/${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%]
- If the product feed contains 'inventory_id' from Maropost Commerce Cloud as 'item_group_id' in Findify product feed, then insert this snippet:
<script src="//assets.findify.io/${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_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%]
Help
For further help, feel free to email [email protected]
Updated 9 months ago
What’s Next