Tealium and "hard coded" SiteCatalyst code

Tealium Expert
Tealium Expert

I have a site which has both Tealium and "hard coded" SiteCatalyst.  Can I use Tealium extensions to "enhance" the data collection of the server-side implementation?  I'm wondering how to handle all the timing if this is possble.  It is a workaround and temporary solution; I know it's not ideal/best practice.

 

Thanks for any ideas.

Tealium Expert
2 REPLIES 2

Tealium and "hard coded" SiteCatalyst code

Tealium Employee

 

A quick response would be 'probably not'.

 

SiteCatalyst is typically loaded synchronously in the <head> or at least top of body. Even if that is not the case, your developer would have to load SiteCatatyst in a way that waits untill Tealium is complete *before* loading the SiteCatalyst library.

 

 Even if you did the s.object insetions in a 'preloader' javascript extension in Tealium, at the very best you will create a race condition where our code is running and completeing ** or not ** before the sitecat library loads off of the page code and uses the s.object.  

 

These timing considerations would be taken care of if in the future you choose to load sitecat from within TIQ :)

Tealium and "hard coded" SiteCatalyst code

Tealium Expert
Tealium Expert

Thanks for the reply and walkthrough.  I was thinking "why" and "why not?" all at the same time.  Our devs stay backed up so thought a workaround might be possible even though all the "don't try this" alarms were sounding in my mind.  I didn't even think of the 'race' condition, could only think of timing issues elsewhere.

 

We'll have to try another approach.... thanks again!

Tealium Expert
Public