Marcolugli – if im reading this right its looks like some Google Analytics data your trying to fire for tracking purposes for an add. It would depend on what your using to bring the form in and whether the form element your adding the code to supports javascript. Not sure if CF7 does.
I know Contact Form 7 has recently changed as to block depreciated code for on event tracking. However I did the other day come across a nifty plugin called:
Contact Form 7 Submission DOM tracking – Tag Manager Tracking
The good thing about this is you don’t have to create individual events, by default it will track events throughout your site. This might help with what your trying to achieve. Unless your just trying to get the ad to work. In which case perhaps add this to a sidebar using something like the enhanced text plugin/widget which supports javascript for API’s.
Not sure if this is what your after but I hope it helps
-
This reply was modified 6 years, 11 months ago by
nronline.