Skip to main content
Contributor I
April 22, 2024
Solved

Integration Error - Duplicated Active On Site Metric

  • April 22, 2024
  • 3 replies
  • 143 views

We have implemented an 'Active on Site' metric triggered through the API on our SuiteCommerce site. However, we recently added the following script tag:

<script type="text/javascript" async="" src="https://static.klaviyo.com/onsite/js/klaviyo.js?company_id=..."></script>

This script is used to track when users enter the site from an email link. Unfortunately, it generates another 'Active on Site' metric in Klaviyo.

Both metrics are named identically. Is there a way to combine them into a single metric for both actions?

We attempted to pass the metric ID in the metric object at the 'Create Event' API Endpoint, but it resulted in an 'invalid parameter' error."

This topic has been closed for replies.
Best answer by annasophiefc

Hi @Belen.c 

 

Thank you for posting in the community!

When you look at the activity on the metric, do you then have activity on both of them?

 

/ Anna Sophie

3 replies

annasophiefc
Partner - Platinum
2025 Champion
April 23, 2024

Hi @Belen.c 

 

Thank you for posting in the community!

When you look at the activity on the metric, do you then have activity on both of them?

 

/ Anna Sophie

Champion & Klaviyo Partner based in Aarhus, Denmark. It is all about communicating the right message to the right people at the right time!
Belen.cAuthor
Contributor I
April 24, 2024

Hello @annasophiefc, how are you?

Yes, I have activity in both metrics.
 

annasophiefc
Partner - Platinum
2025 Champion
April 25, 2024

Hi @Belen.c 

 

I’m great, thanks! How are you?

 

Okay - and is the data 1:1 the same?

 

Champion & Klaviyo Partner based in Aarhus, Denmark. It is all about communicating the right message to the right people at the right time!