Tag with Scoped & All Tags Extension

Gold Contributor
Gold Contributor
I have a tag which has a scoped extension that sets a few values. I also have an extension which is scoped to all tags that I would like to run, but it doesn't appear to do so. Any tags without a scoped extension run without issue. Is this expected behavior?
7 REPLIES 7

Tag with Scoped & All Tags Extension

Employee Emeritus
Are you saying your 'all tags' scoped extension is not running properly?

Tag with Scoped & All Tags Extension

Gold Contributor
Gold Contributor
It runs - but only for tags that do not have another extension scoped.

Tag with Scoped & All Tags Extension

Employee Emeritus

Hi Steve,

 

Ah I understand. No that's not expected behavior. It should run for all tags. Keep in mind though that the All Tags extension will run first, then extensions scoped to tags will run second . That's always the order of operations between these two scopings no matter what order they may appear in.

 

Is it possible the tag-specific ext. is overwriting changes made by the All Tags one?

Tag with Scoped & All Tags Extension

Gold Contributor
Gold Contributor
That is good to know. I was curious which order they would be applied in. But in my case the extension isn't firing at all. I put a debug point at the start of my code in the extension to verify.

Tag with Scoped & All Tags Extension

Employee Emeritus
Hi Steve, that's odd. I would recommend reaching out to your account manager so we can help you take a look at this directly.

Tag with Scoped & All Tags Extension

Gold Contributor
Gold Contributor
Will do. Quick question... Is there anyway to control the order of tag specific extensions? i.e. Always have extension a fire before extension b, where both a and b are scoped to the same tag.

Tag with Scoped & All Tags Extension

Employee Emeritus
If you have extension A and extension B both scoped to Tag UID 5, they will fire in the order they appear from the top down for that tag only. There should be no variance to this. If you find a case where something contradicts this, I would include this in your inquiry to your AM.
Public