AddToSite

← Customize

Customize

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.

Live demo

Running on this page

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

The code

This is the demo above, verbatim. Nothing is shortened for the page.

<div class="ats_kit ats_kit_size_32">
  <a class="ats_button_facebook"></a>
  <a class="ats_button_x"></a>
  <a class="ats_button_linkedin"></a>
  <a class="ats_button_whatsapp"></a>
  <a class="ats_dd"></a>
</div>

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

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 };

Next