Repository URL to install this package:
|
Version:
1.0.2 ▾
|
This module provides content authors an easy way to customize values for Segment related tracking methods per page using metatags!
Developers can leverage the values in the content attribute of the meta tag to pass to whatever Segment tracking method.
composer config repositories.meltmedia composer https://php.fury.io/meltmedia/
composer require drupal/metatag_segment
/admin/config/search/metatag/segment-settingsThis allows content authors to specify a write key for individual pages by overriding the default found on the settings page /admin/config/search/metatag/segment-settings.
Example HTML output
<meta name="segment:key" content="advAEBVASE45436DSFGvads">
This is the name parameter that get's passed to the analytics.page(name) method. See Page documentation
Example HTML output
<meta name="segment:page:name" content="Home Page">
Path: /admin/config/search/metatag/segment-settings
Specify the default write key for your site. See Segment docs to find your key https://segment.com/docs/guides/setup/how-do-i-find-my-write-key/.