Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

ClearVar not clearing s.pageType

Avatar

Level 4

Hi Team,

 

 For an Single Page Application , we are using clearvar function to clear all variables after s.t call

 

https://experienceleague.adobe.com/docs/analytics/implementation/vars/functions/clearvars.html

 

But, what we found is , it is not clearing s.pageType. Is it the expected behaviour? my understanding was it should clear all variables.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

There are a few variables that clearVars doesn't seem to clear   I don't have a full list of them.

 

You could raise this as a ticket, but in the meantime, you could add a custom code block next to your clearVars that manually sets s.pageType="";

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

There are a few variables that clearVars doesn't seem to clear   I don't have a full list of them.

 

You could raise this as a ticket, but in the meantime, you could add a custom code block next to your clearVars that manually sets s.pageType="";