Support

Home Forums Event Espresso Premium ShareaSale set-up

ShareaSale set-up

Posted: June 21, 2017 at 3:22 am


Dr. Shefali

June 21, 2017 at 3:22 am

We are working with affiliate links using ShareaSale. We added a code to the Thank You page, the code is something like this <img src="https://shareasale.com/sale.cfm?amount=AMOUNTOFSALE&tracking=TRACKINGNUMBER&transtype=TYPEOFTRANSACTION&merchantID=73676" width="1" height="1”> FULL INSTRUCTIONS HERE

The problem is that we have a multiple ticket options available (HERE), we need to replace the AMOUNTOFSALE and TRACKINGNUMBER. We put the multiple code with different AMOUNTOFSALE for each ticket prices but with the same TRACKINGNUMBER = Unique Event Identifier

We tested but it turns out that the only first code for the first pricing showing up on our ShareaSale account. What is wrong? What should be the TRACKINGNUMBER? Is it the ticket ID or the REG ID?


Tony

  • Support Staff

June 21, 2017 at 5:40 am

Hi there,

The above questions sounds like something you will need to put forward to shareasale rather than here however I’ll add some feedback to your questions.

How are you adding the above code to the thank you page?

We tested but it turns out that the only first code for the first pricing showing up on our ShareaSale account.

I don’t think you can have multiple instances as then every sale triggers the tracking pixel for all tickets. You have 1 img and dynamically build out the link using the details from the registration, however how you do that decepend on how you are adding the code.

What should be the TRACKINGNUMBER?

Tracking number just appears to be a unique value for each registration, (aka ‘sale’) made on your site fo you can use the registration id, however…

Is it the ticket ID or the REG ID?

Your using EE3, so you don’t have a ticket id, nor a REG ID value, where do you see those values?


Dr. Shefali

June 21, 2017 at 12:38 pm

This is how we added the code to THANK YOU page

http://nimb.ws/S2Fc57

We are confused with the TRACKINGNUMBER too, I know it should be a unique code for every sales, so its either REG ID or TICKET ID. Will the code works if we use EE4?

Or can we customize the EE3 templates?

  • This reply was modified 6 years, 10 months ago by  Josh. Reason: FTFY


Josh

  • Support Staff

June 21, 2017 at 6:12 pm

What you have added to the page will not work because the ShareaSale tracking codes need to be dynamically loaded in, and there should be only one (and the correct one).

There are actually some action and filter hooks in Event Espresso 3 that are suited for this task, but you’ll need to write a bit of PHP and put the PHP into a small plugin to make this work. Here’s a link to a gist that includes some example code that makes use of one of the filters in Event Espresso 3:

https://gist.github.com/joshfeck/cfbbc6641b8da7e7005fc9b388f11e87

You can modify and add the above to a functions plugin</a.


Dr. Shefali

June 22, 2017 at 12:04 am

Will this accomplish what we need to in terms of being able to have a tracking link for every ticket price?


Tony

  • Support Staff

June 22, 2017 at 3:50 am

It tracks the total cost of the registration so if a user selects multiple tickets it would be the total of all of the tickets.

If the user selects a single ticket if will track the amount for that ticket.

It’s not tied to a specific ticket but it will not break down multiple tickets if the user selected different types (2 of one ticket and 1 of another for example).


Dr. Shefali

June 22, 2017 at 12:29 pm

We’ve implemented the code provided in our site but still its not working. The test purchased we’ve made didn’t went through on Shareasale site.
Please let us know how to make this work, we are planning to lauch the affiliate links this weekend.

TIA!


Tony

  • Support Staff

June 22, 2017 at 12:40 pm

What your requesting is outside the scope of support for Event Espresso, whilst we are happy to try and help point you in the right direction (like above) we can not provide support for other 3rd parties.

Having said that, did you check the merchantID in the code Josh provided? It looks like there may be a typo on line 10:

https://gist.github.com/joshfeck/cfbbc6641b8da7e7005fc9b388f11e87#file-shareasale_ee3-php-L10

Looking at your screenshot the id should be 72676.

Have you checked the source code of the thank you page to confirm the link is being output correctly there?


Josh

  • Support Staff

June 22, 2017 at 12:47 pm

Can you check to see if the tracking pixel shows up in the source of the page after the successful payment was made? If you inspect the page source using Chrome’s dev tools you should see something like this in the source:

If you do not see the tracking pixel code there, then can you check to make sure the plugin you added the code to is activated?


Dr. Shefali

June 22, 2017 at 11:54 pm

I corrected the merchant code and activated the plugin but can’t see the tracking pixel code in the source of the thank you page

I really appreciate your support about this matter! πŸ™‚


Dr. Shefali

June 23, 2017 at 3:18 am

This is the code: CUSTOM PLUGIN and this is the source code after the payment https://drive.google.com/file/d/0B_QcnpULAkknRHNocWZ5RXpMUjg/view?usp=sharing


Dr. Shefali

June 23, 2017 at 3:19 am

screenshot of custom plugin code https://drive.google.com/open?id=0B_QcnpULAkknU2NUZkN4czkyeUU


Tony

  • Support Staff

June 23, 2017 at 8:10 am

Remove the closing PHP tag from the plugin, it’s not causing the pixel not to show, but it can cause problems later so remove it to prevent that – http://take.ms/5IPuF

The share a link will only be output once, so if you’ve reloaded the page at all it won’t show any longer. The reason for this is the tracking pixel should only show for a completed payment, if a user reloads the thank you page multiple time the pixel could load multiple times incorrectly tacking multiple sales.

So add a new registration and when you are directed to the thank you page, open the source code and search for ‘sharealink’.


Dr. Shefali

June 23, 2017 at 9:28 am

I removed the closing tag.

I did a several test purchased, it looks like it only shows up when we use Stripe payment gateway BUT not with PayPal.. πŸ™

Thank you so much for all assistance! We really appreciate your help Tony and Josh.


Josh

  • Support Staff

June 23, 2017 at 11:20 am

That would make sense because there can a delay with PayPal so the hook is probably firing before the Instant Payment Notification from PayPal makes it back to your site. Stripe will work just fine though.

The support post ‘ShareaSale set-up’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso