sminnee/silverstripe-segment

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Integration with Segment.com via Tag Manager

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

dev-master 2020-01-10 03:52 UTC

This package is auto-updated.

Last update: 2021-10-10 07:47:48 UTC


README

This module provides integration with Segment.com, via the tagmanager module.

Setting up

To use the module to track pageviews, do the following:

  • Log into your Segment.com account
  • Create a JavaScript source
  • Open its code snippet, and find the API key int he analytics.load('...') line. Copy this value.
  • Open the CMS. Go to the Tag Manager section.
  • Create a tag of type Segment.com. Populate the API key field with API key you copied from segment.com
  • Save

Tracking logged-in user details

To track the email & name of logged in users

  • Open the Segment.com snippet you created in the Tag Manager section of the CMS
  • Check the box, "Send details of logged-in user"
  • Save

Coming soon

  • Tracking of events for visiting marked pages.