Tapstream integrates with Segment to simplify and consolidate tracking of user events.
Tapstream attempts to connect in-browser actions with in-app actions, to provide analytics that cross the browser-app border. So, for browser integrations, both track
and page
calls will be saved as Tapstream "hits" -- browser-side interactions. In the mobile SDK, track
will instead send a Tapstream "event", specifying a mobile app interaction.
Once the Segment library is integrated with your server or app, toggle Tapstream on on Segment's dashboard, and fill in the settings as documented there.
accountName
: Your Tapstream account name.pageUrl
: Set the URL of the tracked impression (defaults to the current page)customParameters
: A map of key-value pairs that will be attached to your impression.storeLinkRewriting
: If this is enabled, Tapstream will search for links to your app's store page and automatically rewrite them so that clicks are tracked.
When you track
an event, Tapstream will receive an event that will be tracked on your Campaigns tab.
When you call the page
method, Tapstream will an impression which will be tracked
on your Websites tab.
Integrate the Segment SDK and enable Tapstream. You will need to use the following options:
You will need to provide the following options:
accountName
: Your Tapstream account name.sdkSecret
: The SDK secret from your account page.
In addition, you may specify the following options:
fireAutomaticInstallEvent
(boolean, default: true): Whether or not to fire an automatic install eventinstallEventName
(string, default: '[appname]-[platform]-install'): What to name the automatic install eventfireAutomaticOpenEvent
(boolean, default: true): Whether to fire an automatic event when the app is opened.openEventName
(string, default: '[appname]-[platform]-open'):collectAdvertisingId
(boolean, default: true): Whether or not to collect an advertising id
Any other options passed will be included in all events as custom parameters.
When you track
an event, Tapstream will receive an event that will be tracked on your Events tab.
You can read more about Tapstream's SDK on our documentation page.