Breadcrumbs

Troubleshooting Shopify integration

Common Issue 1: Tag added in device-specific sections

  • In the file where we have to add the lead tag, there can be dedicated sections for mobile and desktop.

  • Make sure the tag is added outside of those section for it to be fired on all devices.

  • To be checked when you see in your Merchant Extranet that you constantly moves back and forth between V1 and V2.

Common Issue 2: Currency, and comma issues with Shopify integration

Some merchants had issues with all order values with more than 4 digits. The Shopify currency format was {{ amount_no_decimals }} where the standard configuration is with {{amount}}.

If Shopify is configurated with another format, the merchant has to adapt the code for orderValue and price attributes:

Money format

Rounded

Example

Code suggestion

{{ amount }}

No

1,134.65

orderValue: '{{ order.total_price | money_without_currency | remove: ',' }}',

{{ amount_no_decimals }}

Yes

1,135

orderValue: '{{ order.total_price | money_without_currency | remove: ',' }}',

{{ amount_with_comma_separator }}

No

1.134,65

orderValue: '{{ order.total_price | money_without_currency | remove: '.' | replace: ',', '.' }}',

{{ amount_no_decimals_with_comma_separator }}

Yes

1.135

orderValue: '{{ order.total_price | money_without_currency | remove: '.' }}',

{{ amount_with_apostrophe_separator }}

No

1'134.65

orderValue: '{{ order.total_price | money_without_currency | remove: '\'' }}',