Show Menu
TOPICS×

Common errors

Common errors in dynamic accounts are described in the following sections.

Hard Coded Account

If the desire is to always send data to a specific report suite, set s_dynamicAccountSelection to false (alternately, the variables may be removed altogether:
var s_account="defaultreportsuiteid" 
REMOVE: s.dynamicAccountSelection=true 
REMOVE: s.dynamicAccountList="devreportsuite1=qa.client.com;reportsuite1=client.com" 


In the case above, defaultreportsuiteid is always used after the other two lines are removed.

Placement of Code

Defining s_account after the lines of code does not override the dynamic account selection, as shown below.
var s_account="defaultreportsuiteid" 
s.dynamicAccountSelection=true 
s.dynamicAccountList="devreportsuite1=qa.client.com;reportsuite1=client.com" 
s_account="anotherreportsuiteid" 


In the example above, the account "anotherreportsuiteid" overrides "defaultreportsuiteid," but does not override any matches that occur in s.dynamicAccountList. The function that evaluates s.dynamicAccountList is actually executed much later in the .JS file.

Multi-Suite Tagging

Multi-suite tagging may be used in conjunction with dynamic account selection, as shown below.
s.dynamicAccountSelection=true 
s.dynamicAccountList="suiteid1,suiteid2=client.com" 


Dynamic Account Match

Do not put the dynamic account match variables in quotes. The options are displayed below.
Host/Domain Name
None
Query String
s.dynamicAccountMatch=(window.location.search?window.location.search:"?")
Host/Domain and Path
s.dynamicAccountMatch=window.location.host+window.lcation.pathname
Path and Query String
s.dynamicAccountMatch=window.location.pathname+(window.location.search?window.location.search""?")
Full URL
s.dynamicAccountMatch=window.location.href