I like having more control over my global variables as some page views and some track links may have different variables set.
So what I do is I have 2 rules.
- Global Variables - Page View
- Global Variables - Track Link
For every page view and track link, I call a direct call to call the respective rule above then fire a pageview or track link beacon. Inside the rule, I set global variables over that.
That way, I can clear variables when I need to and not have to clear when I don't need to.
