# Amplitude

## Enable the integration

* Navigate to [our integrations page](https://i.usejimo.com/settings/integrations)
* Click the Connect button of the Amplitude integration

<div align="left"><figure><img src="https://2794860263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKzAcDWQbK1gKbpra7bkb%2Fuploads%2FqDFhw7DaDoIZzOvQ0R8J%2F04a76aeb969a6acb9a39e99f6752aed5.png?alt=media&#x26;token=184203b4-a10a-460a-901c-20b78515d371" alt="" width="307"><figcaption><p>Amplitude integration</p></figcaption></figure></div>

## Jimo → Amplitude

{% hint style="info" %}
**Requirements**

The Amplitude Javascript SDK needs to be injected and used in your application for this to work.
{% endhint %}

Send Jimo events to Amplitude. This setup would allow you to capture a comprehensive view of user engagement across your platform. By funneling events from Jimo into Amplitude, you can leverage Amplitude's powerful analytics tools to track, visualize, and analyze user interactions, helping you to better understand user behavior and refine user experience strategies based on actionable insights. This connection ensures that all relevant user activity within Jimo is seamlessly integrated into Amplitude's analytical environment.

<figure><img src="https://2794860263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKzAcDWQbK1gKbpra7bkb%2Fuploads%2F8SYgANA0NdBRTbCWoGLa%2F721b6ebf4ff935ef958feb7b99a18096.png?alt=media&#x26;token=6f47bbfd-795f-4b27-9536-78b392c7de40" alt=""><figcaption><p>Visualize and create analytics dashboard based on Jimo events in Amplitude</p></figcaption></figure>

You can find a list of possible events and their properties

{% content-ref url="events-for-analytics-integrations" %}
[events-for-analytics-integrations](https://help.usejimo.com/docs/integrations/events-for-analytics-integrations)
{% endcontent-ref %}

#### How to enable?

* Enable the option *Jimo → Amplitude* in the integration settings

<figure><img src="https://2794860263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKzAcDWQbK1gKbpra7bkb%2Fuploads%2F5LK8hsh7Z3pePG2ziKjG%2Fab0c5489cf577af06d46dabf52fdda24.png?alt=media&#x26;token=0227eab9-c6d1-4cf0-9360-3e17b8da5ac1" alt=""><figcaption><p>Enable Jimo → Amplitude</p></figcaption></figure>

{% hint style="success" %}
You are all setup 🎉
{% endhint %}

## Amplitude → Jimo

Send Amplitude events to Jimo. This setup enables the utilization of Amplitude's events within Jimo targeting audiences, specifically for the "Who" section (targeting specific user segments) and creation of Segment of users. This ensures that Jimo's engagements are deeply personalized, enhancing user interaction based on precise analytical insights from Amplitude.

<figure><img src="https://2794860263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKzAcDWQbK1gKbpra7bkb%2Fuploads%2FNr9Ej5UTRLUsgbKE4tpJ%2F5a5e299756642623ef8903ed36c3f28d.png?alt=media&#x26;token=add89875-5bed-42cb-9cd6-c8f00969cf02" alt=""><figcaption><p>Create audience based on Amplitude events</p></figcaption></figure>

#### How to enable?

* Enable the option *Amplitude → Jimo* in the integration settings

<figure><img src="https://2794860263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKzAcDWQbK1gKbpra7bkb%2Fuploads%2FDCIhCfUSnvDHKkO7SD1R%2F92bf3b8099fbb769aef54e3f943e6ee9.png?alt=media&#x26;token=fdb8cd01-eb61-4709-ab0e-252f5e16d189" alt=""><figcaption><p>Enable Amplitude → Jimo</p></figcaption></figure>

* Add the following code in your application

```javascript
/**
  Numerous organizations employing Amplitude for event tracking generally maintain
  a universally accessible function for capturing these events.
  
  The easiest method to ensure all these events are also recorded in Jimo
  is by integrating a amplitude:track call from the Jimo SDK into this existing function.
  This technique guarantees the simultaneous capture of events across both platforms.
*/

// Create a universal function
const trackEvent = (name, properties) => {
  window.amplitude.track(name, properties); // You should have this already
  
  window.jimo.push(["do", "amplitude:track", [name, properties]]);
};

// Let's use it
trackEvent("purchase", { amount: 199 })
```

{% hint style="success" %}
You are all setup 🎉
{% endhint %}

## Trigger an experience from an Amplitude event

To display an experience following a Amplitude event in your application, go to the **Settings** page of the experience, set the trigger to "**On event"**, and select the specific Amplitude event to use.

<figure><img src="https://i.gyazo.com/fb7a3ba1a4c94ae5fd86700cdf66af6b.png" alt=""><figcaption><p>Set the experience trigger to <strong>On event</strong></p></figcaption></figure>

<figure><img src="https://2794860263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKzAcDWQbK1gKbpra7bkb%2Fuploads%2FvoYjXpD00DfKl0yOyjpW%2F314438fd2b92ad66d04539666a4714df.png?alt=media&#x26;token=bd250e90-486c-4208-b01b-49d4c6ab109c" alt=""><figcaption><p>Select the Amplitude event that should trigger the experience</p></figcaption></figure>
