setPrefixing
The setPrefixing() method turns on or off automatic prefixing. If turned on, URLs will get prefixes automatically when certain methods are used. Example: The track().screen() method will add the screen prefix to the URL.
By default, setPrefixing(true) is set. This means that prefixes are added automatically.
Syntax
tracker.isPrefixing = isAutomaticgetTracker().setPrefixing(isAutomatic);Parameters
isAutomatic (boolean, required)
Whether URLs get prefixes automatically. True: prefixes are added automatically. False: prefixes are not added automatically.
Examples
To turn off automatic prefixing:
tracker.isPrefixing = falsegetTracker().setPrefixing(false);Updated 3 days ago