GW2Raidar / gw2raidar

A log parsing website for Guild Wars 2 combat logs
http://www.gw2raidar.com
GNU General Public License v3.0
20 stars 14 forks source link

Add Discord and Patreon Links somewhere.. #231

Closed merforga closed 6 years ago

merforga commented 6 years ago

Discord: https://discord.gg/8j43kAc Patreon: https://www.patreon.com/bePatron?c=1250180

Still wanna keep the paypal donation for single one offs as well. The GW2Efficiency site has some nice buttons for donations...tee hee.

ajrdesign commented 6 years ago

Can Patreon add Google Analytics? I'd like to be able to set up goals and track conversion rates on Patreon/Donations.

merforga commented 6 years ago

Can't seem to find a way to do it =x.

There is this for the button from the Patreon page for our use.

<a href="https://www.patreon.com/bePatron?u=7921847" data-patreon-widget-type="become-patron-button">Become a Patron!</a><script async src="https://c6.patreon.com/becomePatronButton.bundle.js"></script>

GA on click tracking would probably be the next best option so we can see how many people are click on those buttons/links.

merforga commented 6 years ago

Ok added some GTM code to track events. So generic code to add to links for buttons is:

onClick="ga(‘send’, ‘event’, ‘Donations’, ‘Click’, ‘Patreon’);"

as an example. For the Patreon button that would mean it would look like this:

<a href="https://www.patreon.com/bePatron?u=7921847" data-patreon-widget-type="become-patron-button" onClick="ga(‘send’, ‘event’, ‘Donations’, ‘Click’, ‘Patreon’);">Become a Patron!</a><script async src="https://c6.patreon.com/becomePatronButton.bundle.js"></script>

The last three parameters are customisable so we can replace Patreon with PayPal for paypal donations etc. Donations is the Category so if we want to add event tracking for say Discord then we can change the Category to something like 'Social Media' and track all clicks to Social Media stuff if that makes sense.

merforga commented 6 years ago

Version 1.0.5b1 released on 2017-11-26 19:07:26