The two ways
Both ways can be used side by side. For a service that constantly changes its own code, the interface is the more low-maintenance solution.
Way A: via the tracking interface
Step 1: Activation
The tracking interface must be activated for your shop. Contact WEBSALE AG to do this.Step 2: Copy the code into ws_analyse.js
The filews_analyse.js in the shop directory holds the scripts of all tracking service providers. If a provider supplies its own file with this name, transfer its content into the existing file instead of replacing it.
Put comment lines around each section. With four service providers in one file, this makes the difference between five minutes and an hour when something needs to be changed later.
Step 3: Set the tag in the template
The tag belongs in the<head> section of every template on which measurements should be taken.
Way B: directly in the template
Tracking usually belongs on all shop pages. Instead of copying the code into every template, create an include section in the FastInclude fileincl_fast_includes.htm and include it everywhere.
Provider examples
Get the code from your account with the respective service and replace all placeholders in it with your own identifiers. Matomo:Special case: Google Conversion Tracking
Google Conversion Tracking is part of Google Ads. You need a Google Ads account for it; when you sign up, you receive your customer ID.Passing umlauts and special characters
The shop delivers its content in the character encoding specified in its configuration, usually ISO 8859-1. Many tracking services, however, expect UTF-8. If you pass a value containing umlauts unchanged, garbled characters arrive at the other end. For this case, there isDC-FP1_convertToEncoding(). The value is placed in a free placeholder, re-encoded and then output.
The source encoding is
$WS-Charset$ rather than a fixed ISO-8859-1. This way, the example also works in a subshop that is set to a different encoding.Checking
After integration, call up a few pages and check in the service provider’s account whether the data is arriving. For Google, the Tag Assistant in the Chrome browser also helps. Guide: Checking the setup of the web tracking codeWhat to review regularly afterwards
Integration is not the end of the job. Two Google tools belong in your daily work, and they answer different questions.
Guide: Sitemaps, robots.txt and mobile subshops
Related topics
- Guide: Description of the tracking interface
- Guide: Consent to data processing (cookies)
- Guide: Include sections
- Guide: A/B test
