Share buttons that stay out of the way.no account required
AddToSite

← All customization

Behind the scenes

Shares in your analytics

If the page already runs gtag or Google Tag Manager, every share arrives as a share event carrying the service name. There is nothing to configure and we load no tag of our own.

The code

<div class="ats_kit ats_kit_size_32">
  <a class="ats_btn_facebook"></a>
  <a class="ats_btn_x"></a>
  <a class="ats_btn_linkedin"></a>
  <a class="ats_btn_whatsapp"></a>
  <a class="ats_dd"></a>
</div>

What to watch for

We never load a tag. If the page has no gtag or dataLayer, the setting does nothing rather than failing.

What is sent

A share event with method set to the service key and content_type set to the page URL. That is the shape Google documents, so it lands in the standard reports without a custom definition.

gtag('event', 'share', { method: 'facebook', content_type: 'https://…' });

Turning it off

One option. It does nothing unless your page already runs one of those two.

window.ats_config = { analytics: false };

Live demo

An article worth passing on

An ordinary kit. The analytics handoff is invisible by design — there is no extra markup to show.

Services (4 selected)

Button size

Shape

Behaviour

<div class="ats_kit ats_kit_size_32">
  <a class="ats_btn_facebook"></a>
  <a class="ats_btn_x"></a>
  <a class="ats_btn_linkedin"></a>
  <a class="ats_btn_whatsapp"></a>
  <a class="ats_dd"></a>
</div>

<script async src="//static.addtosite.com/widget.js"></script>

Related

More in Behind the scenes