Hello guys, @neval123 @jkervran, thanks for reaching out and we do apologize for this inconvenience.
Please note that conversion will be recorded when a popup has a Shortcode: Subscription Form and the user submitted the form. If the popup has text only and a link, it will not be recorded as a conversion and will only display the open views.
?
That said, we had a discussion before with our developer regarding this and according to him, we have official Call To Actions coming, likely in the next update and it will offer trackable links and such. However, in the mean time, technically yes you can still achieve that via code.
This is what it looks like in JavaScript:
?
// Tests tracking a conversion.
var data = {
pid:
parseInt(args.popup.popmake("getSettings").id, 10) ||
null,
event: "conversion"
};
// Shortcode popups use negative numbers, and single-popup (preview mode) shouldn't be tracked.
if (data.pid > 0 && !$("body").hasClass("single-popup")) {
PUM_Analytics.beacon(data);
}
This is what it looks like in PHP:
// Tests tracking a conversion.
$conversion = array(
'pid' => $popup_id,
'event' => 'conversion'
);
PUM_Analytics::track( $conversion );
?
You can both try the codes above and if that works for you guys then we would very much appreciate it if you could quickly rate the plugin, just to help us spread the word.
Otherwise, I would suggest reaching us directly to our HelpScout support desk so we may best assist you with your issue. Check this link: https://wppopupmaker.com/support/ Thank you.