Highlighted

Is it possible to create a custom JavaScript Extension to Handle s_code within SiteCatalyst?

Rookie Contributor
Hello - I'd like to create some code/additional logic to prevent a specific SiteCatalyst event from firing on specific page. My SiteCatalyst tag is configured with the 'SiteCatalyst' Tag Wizard. As a result, I cannot modify the s_code directly. Is it possible to manipulate the s_code configured by the 'SiteCatalyst' Tag Wizard by writing some custom JavaScript for a 'JavaScript Code Extension'?
4 REPLIES 4
Highlighted

Is it possible to create a custom JavaScript Extension to Handle s_code within SiteCatalyst?

Employee Emeritus
Hi Matt, can you provide a little more detail about what you're trying to accomplish? Are you trying to suppress the initial page view (s.t)? If not, which event is firing that you would like to suppress? There are many potential ways to accomplish something like this so in order to give you the best possible answer, we would want some more information on your specific use case. If it's not possible to share pertinent details here then I'd recommend reaching out to your account manager to discuss the challenge in depth.
Highlighted

Is it possible to create a custom JavaScript Extension to Handle s_code within SiteCatalyst?

Rookie Contributor
Hi Clint - Thanks for the response. I am trying to prevent a custom event from being assigned to the s.events and s.products variables for specific pages (i.e.: product detail pages, cart pages, etc.). This specific custom event should ONLY fire on a particular page (the Order Confirmation page), but right now it is firing on other pages as well. For example, if I land on a product detail page, there is a custom event (I will call it eventXX) that is being assigned to the s.products and s.events variables when I don't need it to be. s.events=eventXX s.products=;;;;eventXX=; I am wondering if it is possible to remove or prevent this custom event from firing in the s.events and s.products variables for these specific pages, by creating a 'Custom Javascript' or 'Set Data Value' extension? I hope that is a bit more specific.
Highlighted

Is it possible to create a custom JavaScript Extension to Handle s_code within SiteCatalyst?

Employee Emeritus
Thanks Matt, the detail is very helpful. I've asked one of our Solution Engineers to weigh in here because this is not a scenario I have personally run across and I'd rather someone more knowledgeable answer the question.
Highlighted

Is it possible to create a custom JavaScript Extension to Handle s_code within SiteCatalyst?

Employee Emeritus
Hey Matthew, There are many ways of accomplishing with having to write custom JavaScript. I would need to see how things are currently configured to tell you the specific method in this case. Keep in mind that if a data source is mapped to the event then anytime the data source contains a value the event will get set. In this case you can add a Set Data Values extension and set a condition to only set the data source when necessary. If the event is getting triggered via an extension, a condition may be needed or updated in the extension. I can give more specific details if you can provide the account/profile you are working in and the event number that you're trying to prevent from firing?