Posted: May 21, 2019 at 7:36 am
Hi there, can you please advice how to change the text “Proceed to Payment Options” on the Registration page as per screenshot (link): https://i.imgur.com/IRqvmIl.jpg Also, what file in the plugin files does this button located? We would like to tag the event for tracking and analytics purposes. Thanks in advance! |
|
Hi there, You can find examples of how to change the checkout button text here: https://eventespresso.com/wiki/customize-checkout-registration-button-text/
Please do not modify the core plugin files, there is usually no need when EE has over 1600 filter hooks (search for May I ask, what is it you’d like to add and in which location? |
|
Hi Tony, thanks for the quick response, we want to tag customers clicking the button as an Event with Google Analytics Event. Any idea how we can do this? |
|
By the way Tony, not sure if I should open another topic but would also want to ask regarding this issue about duplicate State fields on our registration form page: https://i.imgur.com/Kk9LUbw.jpg To view this page, you can just follow this link to our Events Schedule page and just register to any events: https://bit.ly/2wnLf0N |
|
You could hook into the Here is a couple of examples of how you can use the above (none of which do what you want, but give you an example of how to use the above function): https://gist.github.com/Pebblo/e67cc5f8fae20e5ae08380f43f5c3b93
Hmmm, I see. If you go to Event Espresso -> General Settings -> Countries. Select United States in the dropdown if it doesn’t load automatically, do you see 2 of every state listed there? |
|
Regarding duplicate States, yes we see 2 for all the states As for the example links you gave, will check that out and will let you know if I have any questions 😉 |
|
Do you already have registrations on this site or it is new? |
|
Yes we already have registrations, the only issue anyways was that the STATE field has duplicates on the Drop down list as per screenshot: https://i.imgur.com/YBFOJEf.jpg |
|
Regarding the hook into the single_page_checkout JS output, not really sure about this as we aren’t really JS programmers. Any idea how we can use that code to tag the clicking of the Proceed to Payment Options button event? |
|
Yeah, I understand the problem but if didn’t have registration you could have fixed this a different way that you’ll now need to (registration have a relationship to the states, so you can’t remove the states as you’ll cause errors when EE tries to pull them). You’ll need to go back to the Countries tab I mentioned earlier, set the US and then for each of the states listed, set the duplicate to not show in the dropdown by setting the ‘State Appears in Dropdown Select Lists’ option to no. So you’l have one state with that option enabled and the other with it disabled.
I’m curious how else you would tag this button for tracking? You wanted to modify core to add tracking, may I ask how would you have done that without JS? |
|
Tony, we just want to tag the event when customers click on the button. Is there a way we can just edit the text to something different? Right now its an input field (Submit) and we can’t tag any HTML text. |
|
I understand that, but unless you meaning something different than how most users track button clicks you’ll need to use JavaScript to do it. EE doesn’t provide tracking by default but you can use some custom code to add it with the examples provided above. If you mean you don’t know how to create the function to do so using Javascript you’ll need the help of a developer, we recommend the folks at codeable.
Yes, but that’s separate from what you would do for tracking and analytics purposes. The link I provided in my first reply shows you how to do this: https://eventespresso.com/wiki/customize-checkout-registration-button-text/
I’m sorry, but I don’t understand what this means. Can you add more details? |
|
The support post ‘Changing Button text on Registration Page’ 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.