You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/destinations/catalog/google-cloud-function/index.md
+12-11
Original file line number
Diff line number
Diff line change
@@ -21,17 +21,18 @@ Before you can process events from Segment, you must provide a Google Cloud Func
21
21
22
22
1. Go to https://cloud.google.com/functions.
23
23
2. Click **VIEW CONSOLE**.
24
-

25
-
26
24
3. Select a project.
27
25
4. Click **CREATE FUNCTION**.
28
-

29
26
5. Enter a name for your function, and choose how much memory the function can use.
30
-
7. In the **Trigger** field, select `HTTP`. Save the `URL` GCP gives you. You'll use this to configure the Segment destination later.
31
-
8. Choose how you'll provide the function's code (in the **Source code** field) and what language the code is written in (in the **Runtime** field).
32
-
9. Enter the name of the function as you defined it in your code, in the **Function to execute** field.
33
-
10. Click **Create** to save your settings and create the Google Cloud Function.
34
-

27
+
6. In the **Trigger** field, select `HTTP`. Save the `URL` GCP gives you. You'll use this to configure the Segment destination later.
28
+
7. Choose how you'll provide the function's code (in the **Source code** field) and what language the code is written in (in the **Runtime** field).
29
+
8. Enter the name of the function as you defined it in your code, in the **Function to execute** field.
30
+
9. Click **Create** to save your settings and create the Google Cloud Function.
31
+
32
+
33
+
### Test the function
34
+
35
+
Segment recommends that you use the Debugger of the source you intend to connect to the Google Cloud Function destination to inspect the request body of the incoming event. This allows you to build handlers in your function based on accurate incoming data. For more information, see [Testing Connections](/docs/connections/test-connections/).
35
36
36
37
## Configure the Google Cloud Function Destination
37
38
@@ -44,7 +45,7 @@ Once you create the Google Cloud Function, you can set up a Segment destination
44
45
3. Click **Configure Google Cloud Function**.
45
46
4. Enter the destination settings for this GCF destination.
46
47
47
-
| Setting | Description |
48
-
| -------- | ------------------- |
49
-
|**HTTP Trigger**| The URL given under the `Trigger` section when you created the Google Cloud Function. |
|**HTTP Trigger**| The URL given under the `Trigger` section when you created the Google Cloud Function.|
50
51
|**API Key** (optional) | A string to identify that a request is coming from Segment, if required by the function. <br><br>The API key is injected in the `Authorization` header as a [basic authorization header](https://en.wikipedia.org/wiki/Basic_access_authentication) without password. |
Some destinations, especially mobile attribution tools (e.g. Kochava), require the IDFA (identifier for advertisers). The IDFA appears in Segment calls in the debugger as `context.device.advertisingId`. To capture this value with Analytics-iOS, follow the steps in [Ad-tracking and IDFA](/docs/connections/sources/catalog/libraries/mobile/ios#ad-tracking-and-idfa). Remember that Apple now requires that the user consent to your tracking before you can collect the IDFA.
246
+
Some destinations, especially mobile attribution tools (for example, [Kochava](https://www.kochava.com/){:target="_blank"}), require the IDFA (identifier for advertisers). The IDFA appears in Segment calls in the debugger as `context.device.advertisingId`. To capture this value with Analytics-iOS, follow the steps in [Ad-tracking and IDFA](/docs/connections/sources/catalog/libraries/mobile/ios#ad-tracking-and-idfa). Remember that Apple now requires that the user consent to your tracking before you can collect the IDFA.
Copy file name to clipboardExpand all lines: src/connections/spec/mobile.md
+5-3
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,13 @@ One of the core components of the Segment [Spec](/docs/connections/spec/) is the
6
6
7
7
By standardizing the events that comprise the core **mobile application lifecycle** and associated **mobile campaign and referral events**, Segment and our partners can, wherever possible, automatically collect and forward these events on your behalf and build downstream destinations which take full advantage of the semantic meaning associated with these events and their properties.
8
8
9
-
**Note:** If you're already collecting similar events, we recommend migrating to these event names so that you can take advantage of available features in our destinations which depend on the spec as they become available.
9
+
> info ""
10
+
> If you're already collecting similar events, we recommend migrating to these event names so that you can take advantage of available features in our destinations which depend on the spec as they become available.
10
11
11
-
These events pair nicely with our [ecommerce spec](/docs/connections/spec/ecommerce/v2/) for mobile marketplaces to take full advantage of features like dynamic ads in Facebook and the ability to take full advantage of server-side destinations with Mobile Attribution Platforms like Tune and Kochava.
12
+
These events pair nicely with our [ecommerce spec](/docs/connections/spec/ecommerce/v2/) for mobile marketplaces to take full advantage of features like dynamic ads in Facebook and the ability to take full advantage of server-side destinations with Mobile Attribution Platforms like [Tune](https://www.tune.com/){:target="_blank"} and [Kochava](https://www.kochava.com/){:target="_blank"}.
12
13
13
-
**Note** Per our [Privacy Policy](https://segment.com/legal/privacy/#sensitive-personal-information) and applicable terms, don't send us sensitive personal information about your users. Certain features from Segment and our partners allow you to opt-in to automatically track data (for example: Application Installed or Deep Link Clicked). When working with these features and Segment in general, be cognizant of the data that is being tracked to ensure its matching both your obligations under your agreement with Segment and the privacy expectations of your users.
14
+
> info ""
15
+
> Per the [Privacy Policy](https://segment.com/legal/privacy/#sensitive-personal-information) and applicable terms, don't send us sensitive personal information about your users. Certain features from Segment and our partners allow you to opt-in to automatically track data (for example: Application Installed or Deep Link Clicked). When working with these features and Segment in general, be cognizant of the data that is being tracked to ensure its matching both your obligations under your agreement with Segment and the privacy expectations of your users.
0 commit comments