I have an app that creates a couple of different tags in GTM via the googleapis Node module. I have only used custom triggers until now. I would like to use the system-generated trigger “Initialization – All Pages”. However, the triggers list() method only seems to returns custom triggers. How do you get the firingTriggerId for this? This is the tag code:
const createTagRes = await gtm.accounts.containers.workspaces.tags.create({
parent: workspacePath,
requestBody: {
name: configTagName,
type: 'googtag',
parameter: [
{
type: 'template',
key: 'tagId',
value: measurementId,
}
],
firingTriggerId: [#??? 'Initialization - All Pages'],
tagFiringOption: 'oncePerEvent',
},
})