Add Custom Attributes for Shopify Plugin
The following code snippet must be added and adjusted in the corresponding shopify liquid file in order to add custom attributes. -
<script>
smartech('contact', '', {
'pk^primaryKey': {{Replace Unique customer identifier value here}},
'email': {{Replace email value here}},
'mobile': {{Replace mobile value here}},
'FIRST_NAME': {{Replace First_Name value here}},
'LAST_NAME': {{Replace Last_Name value here}},
'COMPANY_NAME': {{Replace Company_Name value here}},
'DESIGNATION': {{Replace Designation value here}},
'PRODUCT': {{Replace Product value here}}"
});
</script>
Note
- This should be called after smartech js is loaded.
- Before adding the custom attribute to the shopify liquid file, ensure that you're using the same custom attribute in the smartech panel.
Updated 10 months ago
Next