Hi All,
I want to set up a browse abandonment flow and build Klaviyo segments based on product browsing activity, which I need to add JavaScript event tracking for the Viewed Product metric. The Klaviyo code that is being given is a java script including the following:
<script type="text/javascript">
var item = {
"ProductName": item.ProductName, etc. etc. (Please not this is a part code created by Klaviyo - here is the reference https://developers.klaviyo.com/en/docs/guide_to_integrating_a_platform_without_a_pre_built_klaviyo_integration#viewed-product-tracking-snippet)
I need to make sure to replace item.___ in the code snippet. Can you please confirm what product properties Squarespace is using? Is it product variant? Also do I add this code in Header >> Code Injection?
Thank you
Faye