ActiveCampaign tracking

Can you please tell me how to get ‘current_user.email’ to work on the backend? The users email should auto populate when they visit a page on https://goalsarecool.com/ that has the following tracking code from ActiveCampaign installed

/* Tracking Code - ActiveCampaign */
var trackcmp_email = ‘current_user.email’;
var trackcmp = document.createElement(“script”);
trackcmp.async = true;
trackcmp.type = ‘text/javascript’;
trackcmp.src = '//trackcmp.net/visit?actid=123456789=’+encodeURIComponent(trackcmp_email)+’&r=’+encodeURIComponent(document.referrer)+’&u=’+encodeURIComponent(window.location.href);
var trackcmp_s = document.getElementsByTagName(“script”);
if (trackcmp_s.length) {
trackcmp_s[0].parentNode.appendChild(trackcmp);
} else {
var trackcmp_h = document.getElementsByTagName(“head”);
trackcmp_h.length && trackcmp_h[0].appendChild(trackcmp);
}

Hi @goalsarecool,

Thanks for writing in.

We would love to help you in regards to your concern however it is beyond the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself.

This link below might help you.

Hope it helps.

Thank you for your understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.