Skip to main content
Skip table of contents

*Google Tag Manager (server-side)

Overview

This guide assumes a specific SGTM configuration. If your setup differs from the example provided, contact support@symbiosys.ai for assistance with event logging. The assumed configuration is detailed below.

Instructions

This guide assumes a frontend with a web container tag of type "Google Tag" that sends data to a GTM server container. The server container has a client of type "Google Analytics: GA4" installed. It also applies to setups with or without a server-side tag forwarding events to Google Analytics or another event server. The guide is compatible with frontends using either GTM or gtag.js.

Existing Google tag on frontend

Installed GA4 client that receives data from the frontend.

If your setup does not have these components already (or the gtag.js installed), contact support@symbiosys.ai.

Set up attribution fields

To ensure proper attribution, we need to link visits to orders using custom fields as outlined below.

1. Product ID field

In Google Analytics, set up a custom field for the current product ID, named “product_id.” The method is client-specific; for example, you could use custom JavaScript in GA4 to extract the product ID from the URL.

2. CRM User ID field

We use several user identifiers for attribution, most provided by Google Analytics. However, please include the CRM User ID for logged-in users in every event, using the field name “user_id.”

Tag Installation

All changes should be made in Google Tag Manager. Ensure that the Tag Manager account you are working inside has a Container Type of “Server“, not “Web“.

  1. In Tag Manager, go to Overview > New Tag > Tag Configuration > Community Template Gallery.

  2. Search “Symbiosys Event API“.

  3. Select the Symbiosys Event API tag and add it to your workspace.

  4. Select the tag.

  5. Enter your Symbiosys-provided API key.

    1. Ensure that you are using the correct key per the environment (dev or prod).

  6. Click the Triggering tile

  7. Select All Pages and click Add.

  8. Save changes.

image-20241211-170527.png

Validation

Validate that the correct data is being sent. After completing the integration, contact your Symbiosys Sales Engineer for data validation checks.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.