Visitor and conversion tracking
ShopWired offers functionality for you to easily add third-party scripts provided by visitor tracking platforms, live chat platforms, and other services for use on your website on the visitor monitoring page of your ShopWired account.
You can use ShopWired's dynamic content feature to send additional information within a script to your tracking platforms. For example, when sending a , you can send the order reference.
If implementing Google Analytics GA4 into your website, ShopWired has in-built support for both GA4 and Google Consent Mode V2, read our dedicated help guide.
Cookie consent
Cookie consent
ShopWired provides a cookie consent widget so that you can obtain visitors' consent before placing tracking cookies on their browser. When using the cookie consent widget, you should remember that if a visitor does not consent to cookies, tracking scripts will not run.
If you have activated cookie consent that covers tracking scripts configured on the visitor monitoring page, ShopWired will display a notice next to the setting to remind you.

Visitor tracking
Visitor tracking
To add visitor tracking code to your website:
- Obtain the tracking code from your provider
- Navigate to Settings > Visitor monitoring
- Paste the code you've been given into the Visitor tracking scripts setting
You can enter multiple visitor tracking scripts into this setting.
If you want to add dynamic content to the scripts, select the configure dynamic content for tracking code
setting and follow the instructions below.
Conversion tracking
Conversion tracking
To add conversion tracking code to your website:
- Obtain the tracking code from your provider
- Navigate to Settings > Visitor monitoring
- Paste the code you've been given into the Conversion tracking scripts setting
You can enter multiple conversion tracking scripts into this setting.
If you want to add dynamic content to the scripts, select the configure dynamic content for tracking code
setting and follow the instructions below.
Dynamic content
Dynamic content
You can use the dynamic content feature on ShopWired to send additional information about a visit, visitor, or conversion to your tracking provider. For example:
- When tracking visitors, you can send the visitor's email address (when they are logged into a customer account)
- When tracking conversions, you can send the customer's order reference
ShopWired's dynamic content feature uses to render information about visitors and conversions through a data
object.
data.currency_id
Returns the ID of the currency selected by the visitor (similar to the global.currency_id variable)
data.current_path
Returns the path of the page the visitor is viewing
data.basket.value
Returns the total (currency) value of products in the visitor's shopping basket
data.basket.items
Returns the total number of items in the visitor's shopping basket
data.wishlist.items
Returns the total number of items in the visitor's wishlist
data.basket
Provides access to the basket object
data.customer
Provides access to the customer object for visitors logged into a customer account
An example of how to use the data object is shown below.
{% for item in data.basket.items %}{
item_id: "{{ item.product.sku|escape('js') }}",
item_name: "{{ item.product.title|escape('js') }}",
currency: currency,
price: {{ item.price|escape('js') }},
quantity: {{ item.quantity|escape('js') }}
}{% if loop.last %}{% else %},{% endif %}
{% endfor %}
Facebook tracking pixel
Facebook tracking pixel
The Facebook tracking pixel is used to collect data about visits to your website and helps to track conversions from Facebook ads, optimise those ads based on the collected data, and build targeted audiences for future ads. It can also be used to remarket to visitors who have already visited your website or taken some kind of action on it.
ShopWired has inbuilt support for the Facebook tracking pixel, so you don't need to add any code to your website or theme files to use it.
To configure the Facebook tracking pixel in ShopWired:
- Navigate to Settings > Visitor monitoring
- Navigate to the Facebook Tracking Pixel section
- Add your pixel ID into the Facebook Tracking Pixel ID setting
- Select the types of events that you want to track:
- PageView for whenever a visitor views a page on your website
- Purchase when a customer successfully places an order (either through a payment gateway or the offline payment method)
- Search when a visitor uses the product search function on your website
- CompleteRegistration when a visitor creates a customer account
- InitiateCheckout when a visitor views the shopping basket page
- AddToCart when a visitor adds a product to their basket
- To use the ViewContent pixel, select
track the ViewContent event
option- Add the of the pages you want to track, e.g.
/about-us
, in the Page URLs that should trigger the ViewContent pixel setting - Separate multiple paths with a comma
- Add the of the pages you want to track, e.g.
- To use the Lead pixel, select
track the Lead event
option- Add the of the pages you want to track, e.g.
/about-us
, in the Page URLs that should trigger the Lead pixel setting - Separate multiple paths with a comma
- Add the of the pages you want to track, e.g.