Step 1: Code Integration

To integrate Getback Push on your site, the following code must be integrated within the area. The integration instructions for the Google Tag Manager can be found here.

<script async src="https://www.getback.ch/GETBACK_ID"></script>

Step 2: Upload Getback Service Worker File

The next step is to upload the Getback Service Worker File to your server. The best way to do this is as follows:

  1. Download the Getback Service Worker file.
  2. Unzip the Getback Service Worker ZIP file. The ZIP file should contain the following file::
    • https://yoursite.com/getback-service-worker.js
  3. Upload the Getback Service Worker file on the web server. The file must then be publicly accessible under the domain with which you also want to send push messages. (z.B. https://yoursite.com/getback-service-worker.js).

If you do not want to store the file in the root directory, you can also store the file in a subdirectory. Further information can be found here.

If you cannot include the file via PHP, please make sure that the following headers are set:

Service-Worker-Allowed: /
Content-Type: application/javascript
X-Robots-Tag: none

Step 3: Conversion Tracking (optional)

If you want to measure the conversions caused by Getback Push, the following tracking must be integrated on the order completion page of your shop. The tracking serves to measure the transactions mediated by Getback Push and to display them in the dashboard.

<script async src="https://www.getback.ch/GETBACK_ID/conversion/?ordervalue=XXX&ordernumber=XXX&vouchercode=XXX&email=XXX&subtext=XXX"></script>
ParameterDescriptionValueMandatory
GETBACK_ID
Unique customer IDGETBACK_IDX
ordervalueTotal value of the order (z.B. 243.30)
DynamicX
ordernumberOrdernumberDynamicX
vouchercodeVouchdercode
This parameter is only mandatory in connection with voucher code tracking.
DynamicX
emailE-mail address of the customerDynamic
subtextSelf-definable field to transmit additional information about the orderDynamic

The values ordervalue, ordervalue and vouchercode must be replaced dynamically with the effective order values. The order value must be separated by a dot and submitted as follows: Example: 50.00

The vouchercode entered during the ordering process must be submitted in the variable “vouchercode”. In case no vouchercode was entered in the ordering process an empty string can be submitted in this variable.


Integration via Google Tag Manager

You can integrate Getback via the Google Tag Manager. In the following print screen you can see how our script has to be integrated.