Miguel Braga
Forum Replies Created
-
I will answer this for Josh. Hope he doesn’t mind.
You can use the obj.form_id property as described in the “See example” link.
I am a really nice guy so I give you the full code:function slug_post_form_submission( obj ) { var form_id = obj.form_id; __gaTracker('send', { 'hitType': 'event', // Required. 'eventCategory': 'form', // Required. 'eventAction': 'click', // Required. 'eventLabel': 'Form Submission ID ' + form_id }); }
You could easily replace “obj.form_id” with “obj.form_name” to get the name instead of the ID (please don’t make me paste the entire functions again ?? )
As you can see, I have ditched the “eventValue”. On GA this represents an amount (e.g. a price) and it will sum up all events values in the end. It makes no sense to track the entry ID there. I don’t even know what kind of metric can I get with it.PS: You are quite handsome in your profile photo too. ??
Hi zviera.
I assumed it was evident. ?? If you’re using Google Analytics by MonsterInsights the solution is to rename the “ga” object to “__gaTracker” in the function provided in the “Send A Custom Google Analytics Event On Form Submission” article.
Please, tell me if it worked. ??I figured out what was happening.
The problem was that I was using the Google Analytics by MonsterInsights that renames the ga object to __gaTracker. This issue is not your fault indeed but I bet that a lot of your users will experience it. I suggest you update your Google Analytics article to further help your users.Thanks Josh.
I have registered on the site but I am not allowed to submit a ticket. I have the free version. Isn’t there another way to help me?
Thanks!
Forum: Plugins
In reply to: [Instant Articles for WP] Featured ImagesMy instant articles don’t have Header Art. I thought the plugin would use the post’s featured image but that is not happening. Is it because I am using external featured images?
Thanks!Forum: Plugins
In reply to: [Instant Articles for WP] Featured image is not displayingI have the same issue: my instant articles don’t have Header Art. I thought the plugin would use the post’s featured image but that is not happening. Is it because I am using external featured images? I have created the Facebook App and connected the Facebook page.
Thanks!