First_time_accessed variable not working - Order Status/'Thank You' Page

Topic summary

Issue: The first_time_accessed Liquid variable on the Order Status/Thank You page is not initializing; it remains null, preventing reliable one-time conversion tracking.

Observations: Marketing tests report the conditional based on first_time_accessed is buggy, with tracking firing twice in roughly 2 of ~10 tests. Experiments with and without GTM (Google Tag Manager) and different code placements did not resolve the behavior.

Scope: The problem appears payment-method dependent. With Klarna, first_time_accessed never becomes true.

Evidence: Console logging consistently shows the variable as null; a screenshot is referenced but not essential to the core findings.

Impact: Tracking may double-fire or not fire at all, undermining deduplication and accurate conversion reporting.

Status: No workaround or fix has been identified. Participants are actively seeking real-world usage tips or solutions. The discussion remains open with key questions about payment-method handling and reliable initialization of the variable.

Summarized with AI on February 4. AI used: gpt-5.

Hello, I hope you are doing well.

I have some problems with the “first_time_accessed” variable that helps to prevent conversion tracking code to fire several times.

The problem is that it never get initialized nor set to “true” therefore the tracking code is not executed.

I tried to debug this by logging the content of the variable and it always shows “null” as you can see on the screenshot in the developer console.

That would be great if someone has any idea of what’s going on.

Thank you

3 Likes

We seem to be facing the same issue. Here’s how it looks to our marketing team: “While we tested, we noticed that if first time accessed is super buggy, so the code within that command fired 2 times in roughly 10 tests. We tested various setups, with GTM, without GTM, different code placements… and actually found out that this if first time accessed command is not running properly.”

Will appreciate any info about real-world usage of this functionality, life hacks, etc.

Unfortunately I still didn’t find any solution and I am actively searching for one if someone knows how to fix this

I can see that the issue also depends on the payment method. Whenever I pay with Klarna, first_time_accessed never becomes true unfortunately.

1 Like