SiteCatalyst is a popular web analytics tool. It creates a lot of data that is very useful in tracking users and filling gaps in the user experience. In a large website which has several hundred pages and dozens of page_name values, uniformity is needed in setting SiteCatalyst pagenames for that site. Often the desired SiteCatalyst pageName variable has different sections separated by a delimiter such as a colon or a comma. In this case, the ‘Join Data Values’ extension will be used.
For known pages we can setup the SiteCatalyst pageName variable – sc_page_name – using a ‘Join Data Values’ extension where we can customize the SiteCatalyst pageName variable to add or reduce parts as needed. For example a Product page could have the name of the product appended to the name in addition to text such as ‘Product Details Page’. A page like the Homepage would not need the product name in the SiteCatalyst pageName. This way most standard pages on the site can be assigned a SiteCatalyst pageName.
There are pages that are less frequently accessed for which a generic model of a SiteCatalyst pageName will be enough. Also some advertisement campaigns may be launched for the store with unique landing pages. The team handling the Tealium account for the store may not get sufficient advance notice in which to write an extension to create a SiteCatalyst page name for that page.
In both these situations, a catch-all extension is useful that would define the Sitecatalyst pageName for pages where it is not already defined. It should be located below all the other extensions that set the SiteCatalyst pagenames so that it runs last. The following are the steps we follow if we need to concatenate the site_section variable, the text ‘store’ and the value of page_name variable.
1. Go to ‘Extensions’ and click on ‘Add Extension’.
2. We click on the Add button next to the ‘Join Data Values’ extension.
3. Write a title – ‘Set SiteCatalyst PageName for Other Pages’
4. Scope is set to the Sitecatalyst tag.
5. Destination is sc_page_name.
6. Delimiter is set to :
7. Leading Delimiter is set to ‘No’.
8. Default Value can be left blank or set to the text ‘Undefined’.
9. Accordingly we select the site_section(js) in the first row.
10. In the second row we select ‘Text’ in the dropdown. In the accompanying textbox we enter the text ‘store’.
11. In the third row we select the page_name(js)
12. We click on the ‘Add Condition’ button and set the condition to sc_page_name(js) is not defined.
13. We can verify if the page has a SiteCatalyst pageName by checking for s.pageName in the Tealium Web Companion.