I have a general page load to setup some variables for all pages and I also have another thankyou page load rule to setup additional variables when the thankYou page is loaded. In the general page load rule, I didn't exclude thank you page. If I setup like this, Am I going to double count the page view for thank you page?
Just want to confirm one thing, each time, a page load rule fire, the pageview count will +1? In this case, will thank you page get 2 pageview? Those a rules should be in the save server call, correct?
Best practice is definitely #2. This way your 'global' variables are exactly that - global. And any additional 'non-global' variables cascade based on conditions. A lot of customers like to create page type-based rules:
Shopping Cart Page
Those, along with a Global rule, help create a scalable DTM implementation that is easily managed.
yes, you will get two server calls, one for each page load rule (PLR). and therefore two page views
you have at least two options:
1) turn of the main PLR for the thank you page and add all needed datas to the second PLR
2) cancel the special PLR for the ThankYou page and add needed data as data element to the main PLR. those additional data elements should only return values if the user is on the desired page. this way the data is only added on as desired ...