WP Estore Button Tracking

1 replies
Some of you may know that with wp estore you can only use buttons to add digital products to their cart. Images too. Not text links.

I really, really need to track these clicks and I'm having a hard time figuring that out.

This is the only response I've been able to get.
----------------------------
"Open the "eStore_misc_functions.php" file and find the following function:

function get_button_code_for_element


The code inside this function is placing the button code on the page. Start of the button code is from the following line


$replacement .= '<form method="post" class="eStore-button-form" action="" style="display:inline" onsubmit="return ReadForm1(this, 1);">';


This outputs standard HTML code to show a button. Place whatever tracking code you want to place here."
----------------------------

These are my questions which I've not been able to get answered after a few weeks.

1. Which google analytics code do I place there?
2. Where exactly do I place it? Anywhere inside the < and >
3. Does this mean all buttons will be tracked with the same code meaning I won't be able to distinguish who's clicking on a wpestore button or a wpestore image. For instance, on my page you can see that in the priority form box the button and ebook image both add to wpestore cart. I need to be able to know which one they clicked on to purchase.


Thoughts?
#button #estore #tracking

Trending Topics