Title: Add Google Web Tracking
Last modified: October 12, 2016

---

# Add Google Web Tracking

 *  Resolved [ozzinet](https://wordpress.org/support/users/ozzinet/)
 * (@ozzinet)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/add-google-web-tracking/)
 * Hi. How do I add google events tracking code to execute on a successful booking
   for a particular event?
    Thanks for your help. 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/add-google-web-tracking/#post-8283456)
 * Hi,
 * Which booking mode are you using?
 *  Thread Starter [ozzinet](https://wordpress.org/support/users/ozzinet/)
 * (@ozzinet)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/add-google-web-tracking/#post-8285789)
 * Hi,
 * Thanks for responding. I am just using the standard booking mode, multiple booking
   mode is disabled.
 *  Thread Starter [ozzinet](https://wordpress.org/support/users/ozzinet/)
 * (@ozzinet)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/add-google-web-tracking/#post-8288713)
 * sorry I forgot to mention that I’m using Event manager 5.6.6.1 and event manager
   pro 2.4.2. Thanks.
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/add-google-web-tracking/#post-8288922)
 * here’s another thread which may help you with this – [https://wordpress.org/support/topic/hook-to-redirect-after-booking/](https://wordpress.org/support/topic/hook-to-redirect-after-booking/)
 *  Thread Starter [ozzinet](https://wordpress.org/support/users/ozzinet/)
 * (@ozzinet)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/add-google-web-tracking/#post-8291713)
 * Got this sorted, thanks for your assistance. 🙂
 * I ended up just writing a javascript file and enqueue it with the condition to
   only run for that post id.
    Here is an example of the code for anyone else who
   needs it
 *     ```
       function my_assets() {
       if ( is_single( '1859' ) ) {
       	wp_register_script( 'myscript', get_stylesheet_directory_uri() . 'myscript.js', array( 'jquery' ) );
       	wp_enqueue_script( 'myscript' );
       }
       }
   
       add_action( 'wp_enqueue_scripts', 'my_assets' );
       ```
   
 * And remember to call the function in header file.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Add Google Web Tracking’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [event-manager](https://wordpress.org/support/topic-tag/event-manager/)

 * 5 replies
 * 3 participants
 * Last reply from: [ozzinet](https://wordpress.org/support/users/ozzinet/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/add-google-web-tracking/#post-8291713)
 * Status: resolved