Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Viewed product' event not fired on first visit #309

Open
xgerhard opened this issue Aug 7, 2024 · 1 comment
Open

'Viewed product' event not fired on first visit #309

xgerhard opened this issue Aug 7, 2024 · 1 comment

Comments

@xgerhard
Copy link

xgerhard commented Aug 7, 2024

Environment details

PHP version: 8.1.6
Magento version: 2.4.5
Klaviyo extension version: 4.1.2

Anything else that would help a developer reproduce the bug?
We're using Hyva theme with the Klaviyo_Reclaim Hyva compat module.

Steps to reproduce

  1. Find my profile in the Klaviyo backend
  2. Open incognito browser (to replicate a first visit)
  3. Open product link in Klaviyo email example.com/product.html?_kx=XXX/ or visit product page directly: example.com/[email protected]
  4. Refresh product page

Expected result

In the Klaviyo profile I expect two 'Viewed product' events.

Actual result

Only one 'Viewed product' event shows up, the one after refresh.

Additional information

Just wondering if this is a bug or not, so I can either leave it or dive into the problem.

@smoucka
Copy link
Contributor

smoucka commented Aug 14, 2024

Hi @xgerhard ,

Thank you for submitting this issue! I was able to reproduce and confirm this is undesired behavior. It appears the code that sends the Viewed Product event to Klaviyo can execute prior to the customer being identified. On subsequent page visits the customer is identified and the event sends as expected.

We have added this bug to our backlog. If you would like to submit a PR we would happily review it.

Additionally, if you're working with a specific Klaviyo account and would like further assistance with that account please reach out to Klaviyo's Support Team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants