setTrackingSourceProvider
Note
Use this method only for building custom integration layer on top of Tag Manager.
The setTrackingSourceProvider() method overrides the current tracking source. It is a value used for debugging. It identifies which framework provider has sent a request. Values set by this method take priority over those set by setTrackingSource().
When to use
If you are building a custom integration on top of Tag Manager and you want to ensure the correct tracking source is displayed in the tracker debugger.
Syntax
setTrackingSourceProvider(providerName, providerVersion)
Miscellaneous.setTrackingSourceProvider(providerName, providerVersion)
Miscellaneous.setTrackingSourceProvider(providerName, providerVersion)
Miscellaneous.setTrackingSourceProvider(providerName, providerVersion)
Miscellaneous.setTrackingSourceProvider(providerName, providerVersion)
Miscellaneous.setTrackingSourceProvider(providerName, providerVersion)
Miscellaneous.setTrackingSourceProvider(providerName, providerVersion)
Parameters
Parameter | Type | Description | Required |
---|---|---|---|
providerName | string | Name of the integration provider, e.g. react, vue, angular. | Yes |
providerVersion | string | Current version of the provider in semantic versioning. Example: 1.0.0. | Yes |
Examples
To change the provider name to react and version to 1.0.0:
_paq.push(["setTrackingSourceProvider", "react", "1.0.0"]);
Miscellaneous.setTrackingSourceProvider("react", "1.0.0")
Miscellaneous.setTrackingSourceProvider("react", "1.0.0")
Miscellaneous.setTrackingSourceProvider("react", "1.0.0")
Miscellaneous.setTrackingSourceProvider("react", "1.0.0")
Miscellaneous.setTrackingSourceProvider("react", "1.0.0")
Miscellaneous.setTrackingSourceProvider("react", "1.0.0")
Related methods
Updated 15 days ago