sminnee/silverstripe-segment

This package is abandoned and no longer maintained. No replacement package was suggested.

Integration with Segment.com via Tag Manager

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

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

This package is auto-updated.

Last update: 2024-03-10 13:02:46 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.