Archived topic
Could you explain how priority works?
3 replies · Started by Jusung on February 8, 2023
I found there is priority on elements and I started to use it since I set GTM on my website.
I gave 5 priority for the GTM head code and gave 0 for GTM body code.
I also added Datalayer for view content and I gave 10 priority to it.
Would this be fine? On my end, it works well.
I don't know how it works.
Hi Jusung,
Priority defines what "hook" runs first.
By default, all hooks have a priority of 10.
So, if you set your hook to 1, it will run first before other codes with lower priority.
What you did should be fine.
THank you for expalanation!
I got it!
This video should be very helpful as well :)
https://youtu.be/VdoWGOsvDMk