Tracking Testing Conventions
The following test cases cover the most common situations when the testing system needs to work. The following conventions are used which should be replaced with the actual !URLs:
TestActionDomainis the domain at which you have your action editions installed (at TestActionEditionPath? )TestReferrerDomainis the domain in which you embed links to to target Action Edition (TestActionEditionPath?) and with FullPath? includes the exact URL of the test referrer page- A
direct linkrefers to coming to theTestActionDomainsite by manually typing in the URL or clicking on a email link as both have no referrer and are reported by web analytics software as coming to the sitedirect(no referrer). - An
indirect linkrefers to coming to theTestActionDomainsite via another site (visit has a referrer)
These tests are mainly for development purposes and don't need testing if you are just deploying the package as long as you have enabled the tracking system (see Install and Configure) and are using the default Tracking variables (see Tracking)
How it Works
The Landing and Onsite Origin URLs are stored in the Action Record and includes the full query string (which may also contain tracking variables for other tracking systems like Google Analytics). On saving an action record, these URLs are be parsed and:
1) The individual tracking values each stored in separate action record fields
2) The query string tracking variables and values removed from the Landing URL that is saved (but not all query string values in case there are others)
The Landing and Onsite Origin URLs can both contain tracking tags (as part of the query string)
If a query string variable contains more than one value or if two different values for the same query string variable exist in the Landing and the Onsite Origin URLs, then each distinct value is to be stored in the same Action Record field separated by a delimiter.
Tracking Test Cases
This is a set of tests for the eCampaigning package and it's tracking system.
Test 1: Direct Link without referrer
- Open a new browser (not a new window) so a new session is recorded (and the results aren't contaminated with previous tests)
- Cut and paste the link ( http://TestActionDomain/TestActionEditionPath ) into the new browser and go to the page
- Type in your first name,
Test 1as your last name and the rest of the details & submit
Expected Results
- Supporter IP address: not 127.0.0.1
- Referrer URL: null
- Onsite Origin URL: direct
- Landing URL: http://TestActionDomain/TestActionEditionPath
- Source code: null
- Medium code: null
- Content code: null
- Participant ID: null
- Name code: null
- Terms: null
Test 2a: Indirect Link without referrer
- Open a new browser (not a new window) so a new session is recorded (and the results aren't contaminated with previous tests)
- Cut and paste the link ( http://TestActionDomain ) into the new browser and go to the page
- Take a direct link on the page to the action (if possible)
- Type in your first name,
Test 2aas your last name and the rest of the details & submit
Expected Results
- Supporter IP address: not 127.0.0.1
- Referrer URL: null
- Onsite Origin URL: http://TestActionDomain
- Landing URL: http://TestActionDomain
- Source code: null
- Medium code: null
- Content code: null
- Participant ID: null
- Name code: null
- Terms: null
Test 2b: Indirect Link without referrer
- Open a new browser (not a new window) so a new session is recorded (and the results aren't contaminated with previous tests)
- Cut and paste the link ( http://TestActionDomain ) into the new browser and go to the page
- Go to one or more non action pages
- Go the the action page from a different page than the landing page (not http://TestActionDomain)
- Type in your first name,
Test 2bas your last name and the rest of the details & submit
Expected Results
- Supporter IP address: not 127.0.0.1
- Referrer URL: null
- Onsite Origin URL: whatever page you went to the action page from
- Landing URL: http://TestActionDomain
- Source code: null
- Medium code: null
- Content code: null
- Participant ID: null
- Name code: null
- Terms: null
Test 3: Direct Link with referrer
- Open a new browser (not a new window) so a new session is recorded (and the results aren't contaminated with previous tests)
- Click here to go to http://TestActionDomain/TestActionEditionPath
- Type in your first name,
Test 3as your last name and the rest of the details & submit
Expected Results
- Supporter IP address: not 127.0.0.1
- Referrer URL: http://TestReferrerDomain/FullPath
- Onsite Origin URL: direct
- Landing URL: http://TestActionDomain/TestActionEditionPath
- Source code: null
- Medium code: null
- Content code: null
- Participant ID: null
- Name code: null
- Terms: null
Test 4: Direct Link with referrer & origin code
- Open a new browser (not a new window) so a new session is recorded (and the results aren't contaminated with previous tests)
- Click here to go to http://TestActionDomain/TestActionEditionPath?s=test4
- Type in your first name,
Test 4as your last name and the rest of the details & submit
Expected Results
- Supporter IP address: not 127.0.0.1
- Referrer URL: http://TestReferrerDomain/FullPath
- Onsite Origin URL: direct
- Landing URL: http://TestActionDomain/TestActionEditionPath
- Source code: test4
- Medium code: null
- Content code: null
- Participant ID: null
- Name code: null
- Terms: null
Test 5: Indirect Link with referrer
- Open a new browser (not a new window) so a new session is recorded (and the results aren't contaminated with previous tests)
- Click here to go to http://TestActionDomain/?s=test5
- Take a direct link on the page to the action (if possible)
- Type in your first name,
Test 5as your last name and the rest of the details & submit
Expected Results
- Supporter IP address: not 127.0.0.1
- Referrer URL: http://TestReferrerDomain/FullPath
- Onsite Origin URL: http://TestActionDomain/
- Landing URL: http://TestActionDomain/
- Source code: test5
- Medium code: null
- Content code: null
- Participant ID: null
- Name code: null
- Terms: null
Test 6: Indirect Link with referrer & origin code
- Open a new browser (not a new window) so a new session is recorded (and the results aren't contaminated with previous tests)
- Click here to go to http://TestActionDomain/?s=test6
- Take a direct link on the page to the action (if possible)
- Type in your first name,
Test 6as your last name and the rest of the details & submit
Expected Results
- Supporter IP address: not 127.0.0.1
- Referrer URL: http://TestReferrerDomain/FullPath
- Onsite Origin URL: http://TestActionDomain/
- Landing URL: http://TestActionDomain/
- Source code: test6
- Medium code: null
- Content code: null
- Participant ID: null
- Name code: null
- Terms: null
Test 7: Indirect Link with referrer & origin code & surfing site
- Open a new browser (not a new window) so a new session is recorded (and the results aren't contaminated with previous tests)
- Click here to go to http://TestActionDomain/?s=test7
- Go to one or more non action pages
- Go the the action page from a different page than the landing page (not http://TestActionDomain/?s=test7)
- Type in your first name,
Test 7as your last name and the rest of the details & submit
Expected Results
- Supporter IP address: not 127.0.0.1
- Referrer URL: http://TestReferrerDomain/FullPath
- Onsite Origin URL: whatever page you went to the action page from
- Landing URL: http://TestActionDomain/
- Source code: test7
- Medium code: null
- Content code: null
- Participant ID: null
- Name code: null
- Terms: null
Test 8: Indirect Link with referrer & origin code & surfing site-taction-surf site-action
- Open a new browser (not a new window) so a new session is recorded (and the results aren't contaminated with previous tests)
- Click here to go to http://TestActionDomain/?s=test8
- Go to one or more non action pages
- Find a link that returns you to the action page and follow it
- Surf some more by going to one or more non action pages
- Return to the the action page from a different page than the landing page (not http://TestActionDomain/?s=test8)
- Type in your first name,
Test 8as your last name and the rest of the details & submit
Expected Results
- Supporter IP address: not 127.0.0.1
- Referrer URL: http://TestReferrerDomain/FullPath
- Onsite Origin URL: whatever last page you went to the action page from
- Landing URL: http://TestActionDomain/
- Source code: test8
- Medium code: null
- Content code: null
- Participant ID: null
- Name code: null
- Terms: null
Test 9: Direct Link with referrer & origin code & surfing site
- Open a new browser (not a new window) so a new session is recorded (and the results aren't contaminated with previous tests)
- Click here to go to http://TestActionDomain/TestActionEditionPath?s=test9
- Go to one or more non action pages
- Find a link that returns you to the action page and follow it
- Type in your first name,
Test 9as your last name and the rest of the details & submit
Expected Results
- Supporter IP address: not 127.0.0.1
- Referrer URL: http://TestReferrerDomain/FullPath
- Onsite Origin URL: whatever page you last went to the action page from
- Landing URL: http://TestActionDomain/TestActionEditionPath
- Source code: test9
- Medium code: null
- Content code: null
- Participant ID: null
- Name code: null
- Terms: null
Test 10: Direct Link with referrer & multiple codes, including a non-relevant code (for tracking)
- Open a new browser (not a new window) so a new session is recorded (and the results aren't contaminated with previous tests)
- Click here to go to http://TestActionDomain/TestActionEditionPath?s=10s&m=10m&c=10c&p=10p&n=10n&t=10t&x=10x
- Type in your first name,
Test 10as your last name and the rest of the details & submit
Expected Results
- Supporter IP address: not 127.0.0.1
- Referrer URL: http://TestReferrerDomain/FullPath
- Onsite Origin URL: direct
- Landing URL: http://TestActionDomain/TestActionEditionPath?x=10x
- Source code: 10s
- Medium code: 10m
- Content code: 10c
- Participant ID: 10p
- Name code: 10n
- Terms: 10t
Test 11: Direct Link with referrer & multiple codes
- Open a new browser (not a new window) so a new session is recorded (and the results aren't contaminated with previous tests)
- Cut and paste the link ( http://TestActionDomain/TestActionEditionPath?s=11s&m=11m&p=11p&c=11c&t=11k ) into the new browser and go to the page
- Type in your first name,
Test 11as your last name and the rest of the details & submit
Expected Results
- Supporter IP address: not 127.0.0.1
- Referrer URL: none
- Onsite Origin URL: direct
- Landing URL: http://TestActionDomain/TestActionEditionPath
- Source code: 11s
- Medium code: 11m
- Content code: 11c
- Participant ID: 11p
- Name code: 11n
- Terms: 11t
Test 12: Indirect Link with referrer & multiple codes
- Open a new browser (not a new window) so a new session is recorded (and the results aren't contaminated with previous tests)
- Click here to go to http://TestActionDomain?s=12s&m=12m&c=12c&p=12p&n=12n&t=12t
- Take a direct link on the page to the action (if possible)
- Type in your first name,
Test 12as your last name and the rest of the details & submit
Expected Results
- Supporter IP address: not 127.0.0.1
- Referrer URL: http://TestReferrerDomain/FullPath
- Onsite Origin URL: http://TestActionDomain
- Landing URL: http://TestActionDomain
- Source code: 12s
- Medium code: 12m
- Content code: 12c
- Participant ID: 12p
- Name code: 12n
- Terms: 12t
Test 13: Indirect Link with onsite codes
- Set-up a link on http://TestActionDomain/TestPage going to http://TestActionDomain/TestActionEditionPath?s=13s&m=13m&c=13c&p=13p&n=13n&t=13t
- Open a new browser (not a new window) so a new session is recorded (and the results aren't contaminated with previous tests)
- Click here to go to http://TestActionDomain/TestPage
- Click on the link with the tracking tags to the action
- Type in your first name,
Test 13as your last name and the rest of the details & submit
Expected Results
- Supporter IP address: not 127.0.0.1
- Referrer URL: Direct
- Onsite Origin URL: http://TestActionDomain/TestPage
- Landing URL: http://TestActionDomain/TestPage
- Source code: 13s
- Medium code: 13m
- Content code: 13c
- Participant ID: 13p
- Name code: 13n
- Terms: 13k

