Stuifbergen.com

Analytics & Growth Hacking

  • About
  • Contact
  • Professional Services

Find me here

  • Mastodon (social)
  • Mastodon (measure)
  • No more Twitter
You are here: Home / Blog / Slack Ping: Send Slack messages via GTM Server Side

Slack Ping: Send Slack messages via GTM Server Side

8 July 2021 by jules Leave a Comment

This is the official documentation of the Slack Ping server side GTM tag I created.
This Server Side tag, when triggered, will send a Slack message via the Slack webhook mechanism.

Use cases

  • get notified when someone makes a purchase
  • monitor errors and 404s
  • anything else you can think of

Config Options

The tag can be customized a lot:

  • Of course, you can set the content of the message
  • You can include values of event parameters, or the event name
  • Override the #channel or @person to send the event to
  • Set the slackbot username
  • Set the slackbot icon
  • Customize the color

Here’s a screenshot:

How will the message look?

Here’s an example:

Note that the Flag icon is set via a variable. Neat!

How to trigger a message?

Go to the Trigger part of your Server Side container, and just add the trigger you want. In the screenshot below, I chose a Custom Event purchase – which is the recommended event for a GA4 ecommerce sale.

The Slack end: find your webhook URL

You will need to configure an incoming webhook in slack.

When you’ve done that, your webhook URL will be visible in the configuration screen.

Support and Questions?

Thanks for using this template! If you need support or have questions, post them here, or on the Github Page for this plugin.

Related posts:

GTM Monitoring in Google Analytics Catch exit-intent with a Google Tag Manager trigger https://flic.kr/p/7AuHtETrack non-left mouseclicks with Google Tag Manager Google Tag Manager Cookie Consent dialog

Filed Under: Blog Tagged With: Google Tag Manager, gtm server side, tag management

Liked this post?

Buy Me a Coffee

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Analyze AB tests in GA4 via Big Query
  • How to make sure your GA4 events tables do not expire
  • Prepare your cloud project for “Bulk data export” Google Search Console
  • Making Sense of the GA4 Configuration Tag
  • Using Big Query to calculate DAU / MAU

Need help?

  • Contact me

Search

© Copyright Jules Stuifbergen · Powered by Genesis ·