Skip to content
English - United States
  • There are no suggestions because the search field is empty.

Add a follow-up event on the “Sign up” button

Why track clicks on your signup button?

Key features • Accurately measures interest in your content • Helps optimize your hotel marketing campaigns • Compatible with GA4 and Google Tag Manager • No impact on design or user experience

Adding a follow-up event to a button like “Sign Up” is one of the best ways to measure the effectiveness of your marketing strategy. For a hotel website, this allows you to understand which traffic converts best, optimize your campaigns, and improve the performance of your forms.

Here's how to add clear, clean, and best practice-compliant tracking.

1. Identify your “Sign up” button

Before adding an event, it is essential to identify: • The button ID • Its class • Or its custom attribute (for example, data-cta="inscription")

This identification will allow your tracking tool to accurately recognize the button.

💡 Tip: If you can add a custom attribute, choose a clear value like data-action="signup".

2. Add an attribute for tracking (simplest solution)

To make it easier to configure in your analysis tool, add an attribute to the button.

Recommended example: • Name: data-track • Value: signup_button

This attribute does not change the style of the button and greatly facilitates the triggering of an event.

3. Configure the event in Google Tag Manager

Google Tag Manager is ideal for tracking button clicks without modifying the source code.

Steps:

  1. Open Google Tag Manager
  2. Create a new tag “GA4 Event”
  3. Give it a clear name, for example: signup_click
  4. Add the event as a parameter (event_name, page_location, etc.).
  5. Create a click-based trigger: • Type: Click – All Elements • Condition: Element attribute equals data-track = signup_button
  6. Test it in Preview mode
  7. Publish

💡 Tip: A simple event name (signup_click) is easier to analyze in GA4.

4. Check the data in Google Analytics 4

Once the event is sent via Google Tag Manager: • Open GA4 • Go to Admin → Events • Locate the signup_click event • Enable “Mark as conversion” if you want to make it a key metric

This allows you to precisely track the performance of your “Sign Up” button.

5. Comply with the GDPR

The button tracking must comply with consent rules.

Ensure that: • The click is only tracked if the user accepts marketing cookies • No personal data is transmitted in the event • The button remains fully functional without tracking

💡 Tip: Combine this tracking with form statistics for a complete view of the hotel user journey.

Conclusion

Yes, you can add a follow-up event to the "Sign Up" button, and it's highly recommended for analyzing your conversions. Whether you use a custom attribute or a Google Tag Manager trigger, this setup will give you a clear view of your hotel marketing strategy's performance.