# Create a Campaign with Google Analytics

* Log in to your CrossEngage account.
* Go to "Campaigns" and click on "Create new campaign" in the top right corner.

<figure><img src="/files/DvQlgHZCTkPXaSHxJwDz" alt=""><figcaption></figcaption></figure>

* Choose whether you want to create an Audience or a Realtime campaign. Information about the distinction between these types of campaigns found [here](/data-and-engagement-platform/campaign-management/campaigns.md).
* Fill in the "Campaign setup" and “Target group” sections.
* Go to the "Messages" section and click the "Create new message" button.
* Select 'Segment Transfer' from the dropdown menu.

<figure><img src="/files/OBtSut6neuTdJH1a7zib" alt=""><figcaption></figcaption></figure>

* Under the 'Send via integration' heading, select the Google Analytics integration that you set up earlier.

### Google Analytics campaign

You can now define the Google Analytics Event that you would like to send to the selected CrossEngage segment (or qualifying Realtime campaign user). Google Analytics Events are defined with the following:

1. **Event Action** - This is defined by CrossEngage as **CrossEngage Event** to allow you to immediately differentiate CrossEngage transfers from other types of tracking events.
2. **Event Category** - Category allows you to usually define what type of interaction this event describes (e.g. Funnel Step 1)
3. **Event Label** - Label allows you to categorise events  (e.g. Reactivation Cycle)

<figure><img src="/files/BVO8mBxZhLw1ga1BzQBU" alt=""><figcaption></figcaption></figure>

* Optionally, you can also populate **Custom Dimensions** for users stored in your Google Analytics account with every event dispatch.

<figure><img src="/files/11asFRvfxgytRVBqXlgH" alt=""><figcaption></figcaption></figure>

**Custom Dimensions** allow you to transfer user data from CrossEngage to Google Analytics and use this within Google Analytics segmentation and build audience that can have any **Destination** (e.g. AdWords, Google Distribution Network) that you have set up & have access to. PII (Personal Identifiable Information) data should not be transferred to Google Analytics via CrossEngage due to GDPR restrictions.

### Understanding Response Data

At this time, when using Google Analytics, CrossEngage currently creates & stores only one type of event:

* Sent, generated when an event was sent to a Google Analytics user (in segmentation google.analytics.segment.transfer.sent).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.crossengage.io/data-and-engagement-platform/messages/integrations/channels/segment-transfer/google-analytics/create-a-campaign-with-google-analytics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
