Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mozilla/experimenter-docs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 93649ab0f15a92dc6aab1f9da159726ac1a7d352
Choose a base ref
..
head repository: mozilla/experimenter-docs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7066adedfa95556c820dea6f9c5eb9ae758d536f
Choose a head ref
Showing with 5 additions and 2 deletions.
  1. +5 −2 docs/workflow/implementing/messaging/mobile-microsurveys.md
7 changes: 5 additions & 2 deletions docs/workflow/implementing/messaging/mobile-microsurveys.md
Original file line number Diff line number Diff line change
@@ -115,7 +115,10 @@ To customize answers and UTM parameters, we have to add the `microsurvey-config`

```

For the UTM parameters, just add the `utm-content` field. It's the type string, so you just have to add a query string which will be appended to the url of the privacy notice.
The icon can be added by using the field `icon` under `microsurvey-config`, you have to provide a valid icon resource id, a full list of possible icons can be found [here](https://searchfox.org/mozilla-central/source/mobile/android/android-components/components/ui/icons/src/main/res/drawable) and [here](https://searchfox.org/mozilla-central/source/mobile/android/fenix/app/src/main/res/drawable).
Something to keep in, mind is Android usages a special type vector called [vector drawables](https://developer.android.com/develop/ui/views/graphics/vector-drawable-resources), to visualize it you will need Android studio with Fenix source code, ideally if the icon hasn't been use before confirm with the Android team how it will look like.

For the UTM parameters, just add the `utm-content` field. It's the type string, so you just have to add a [query string](https://en.wikipedia.org/wiki/Query_string) which will be appended to the url of the privacy notice.

Below you full example (below example is for “How satisfied are you with your Firefox homepage?”)

@@ -133,7 +136,7 @@ Below you full example (below example is for “How satisfied are you with your
],
"microsurvey-config": {
"utm-content": "homepage",
"icon": "ic_home"
"icon": "mozac_ic_home_24",
"answers": [
{
"text": "likert_scale_option_1",