Hi,
I am new to Piwik and it is really a good project.
Trying to test the async api with contact form 7 in wordpress, I wish to push the email field in a custom variable.
I set :
$(window).load(function() {
$(’.wpcf7-submit’).click(function(){
var myemail;
myemail=$(’.wpcf7-email’).val();
_paq.push([‘setCustomVariable’,‘1’,‘custemail’,myemail]);
});})
but the custom variable is not set when I submit the form.
Could you please help with my code? Thank you