Expand my Community achievements bar.

Delay in publishing custom code in Update Variable

Avatar

Level 2

I'm finding that changes to custom code are not publishing when building a new property.

 

I'm applying Custom Code within an Update Variable Action. Any changes from the UI are taking effect (updating the data Data Element), but any changes made in the Custom Code area are not applying.

 

I've tried to make Custom Code changes with changes to the UI together, and separately, but I can't get the changes to apply. Is there a delay in custom code updating after building the property + library?

6 Replies

Avatar

Community Advisor

Hi @BLX9 

you're talking about WebSDK update variable, correct?

can you give a screenshot of your custom code to better understand what you are trying to achieve? 
Also, are you sure your rule is included in your library when you build it? Sometimes adding an empty line and click Save again and rebuild does the trick 

Cheers from Switzerland!


Avatar

Level 2

Yes, the rule was included as part of the library. The custom code was similar to the placeholder text, where I was re-writing the values for Analytics eVars.  I had an if statement that handled different cases, and commented out a line. I checked that the code was still valid. Also cleared cache in my browser for testing.

 

Eventually the change took effect. I'm unsure when exactly, but it took more than 5-10 minutes.

Avatar

Community Advisor

Interesting. Maybe it was during a release window and the CDN update was affected by it.

glad it worked now 

Cheers from Switzerland!


Avatar

Employee Advisor

Sometimes you might see in the tags UI that a library has built, but when you refresh the library in your browser it is not loading the latest build. I believe this is due to CDN caching and more likely to occur with a build in the production environment. A good way to check if this is what is occuring is to look at the Build Date of the library in the debugger and see if it corresponds to your new build or the previous one. Keep in mind that it might show a different time zone so the hours may be different. I usually focus on the day and minutes to see if it is the latest one:

dwright_0-1730379378946.png

 

Avatar

Administrator

@BLX9 Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni