Open Chardonneaur opened 1 month ago
I had one user report this today.
@Chardonneaur It appears that this was a deliberate design choice for debugging. Here's a snippet of the code that I found:
if (this.fireLimit === Tag.FIRE_LIMIT_ONCE_24HOURS && !window.mtmPreviewWindow) {
// in preview/debug mode we make sure to execute it
@snake14 thank you, would it be possible to make it as an on/off option?
@Chardonneaur Sure. That looks possible. We'd just have to determine the best place to put such a setting in the UI. I went ahead and updated the description to reflect that enhancement.
Hi team,
It appears that when we configure some advanced settings for a tag, for example: execute it once in a lifetime or once every 24 hours, the preview mode is not respecting those rules. Here is a video to understand better what is happening:
https://github.com/matomo-org/tag-manager/assets/28002238/b465b862-ebf8-4fba-96bc-dc71c61ef6b7
Expected behaviour would be that the preview mode respect those conditions, so to say the preview mode should not react to the associate tag for 24 hours or for a lifetime.
Enhancement: Implement a new setting which allows the customer to toggle whether tags are always triggered in debug mode or whether they follow the advanced settings. It should be possible by editing the code in this section.