Hi @aa_from_savoy
Good day!
The unique visitor has a value of "new" on the first visit then when there's a form interaction it should be "repeat"
I have already tried following what's on this tutorial(https://experienceleague.adobe.com/docs/analytics/implementation/vars/plugins/getnewrepeat.html?lang=en) however, this does not work as well.
The code below was also added on Adobe Analytics extension to capture the New Repeat Visits
s.eVar12 = s.getNewRepeat(90);
Thank you!
Hi @kimpeeey, thanks for the details.
As mentioned in the documentation:
This function returns the value of "New" if the cookie set by the plug-in doesn’t exist or has expired. It returns the value of "Repeat" if the cookie set by the plug-in exists and the amount of time since the current hit and the time set in the cookie is greater than 30 minutes. This function returns the same value for an entire visit.
If:
- it's the first visit of the visitor
- the time between the landing page and the form page is less than 30 mins, the plugin will always return "New"

Bear in mind also that you have an iframe, so the domain of the landing page and the form (included via iframe) probably are different. Therefore, the cookie set by getNewRepeat() in the home page is written on mydomain.com, and is not accessible by the domain of the form (anotherdomain.com). This means that, when the iframe is rendered, the cookie in anotherdomain.com is not presented, and therefore is labeled as "New", as per documentation.

If you want a different behaviour you need to implement something custom, or use other variables available out of the box.
Hope this helps.
Best