Module

services/analytics/gtag

Helper to send events to google tag manager/gtag. This helper expects a well formed object to be set directly on the dataLayer from the library.

Parameters:
Name Type Description
opts object

Object with the expected google tag manager variables

Properties:
Name Type Description
opts.name sting

Event name to send

opts.params sting

params to send to Google Analaytics as Event params

Exception if the dataLayer is not able to push the variables object

error

true if the push is correct

boolean