ClearVar not clearing s.pageType | Community
Skip to main content
Level 4
February 3, 2023
Solved

ClearVar not clearing s.pageType

  • February 3, 2023
  • 1 reply
  • 692 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jennifer_Dungan

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="";

1 reply

Jennifer_Dungan
Community Advisor and Adobe Champion
Jennifer_DunganCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
February 3, 2023

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="";