Power Automate is a tool that lets you create automated workflows between different apps and services. This means that you can set up tasks like syncing files, getting notifications or collecting data without having to do them manually.
You can use Power Automate to set up automated workflows between Piwik PRO and your other apps. For example, you could receive a notification when someone signs up for your product, update your spreadsheet automatically when someone makes a purchase or assign a salesperson to follow up with a customer who hasn’t decided yet. There are lots of ways to make use of data from Piwik PRO and Power Automate.
In this article, we’ll explain how to activate data for Power Automate.
Before you start
Here are a few key things to know before you start:
- To learn more about Power Automate, see Microsoft’s documentation.
- Activation will only happen after it’s created and only for people who join the audience. It does not apply to people who were in the audience before activation.
Create a Power Automate activation
To create a Power Automate activation, follow these steps:
- Log in to Power Automate.
- Click + Create.
- Select Instant cloud flow.
- Name the flow.
- Choose When an HTTP request is received. This will let you set up the incoming webhook.
- Log in to Piwik PRO.
- Go to Menu > Customer Data Platform.
- Navigate to Activations.
- Click Add an activation.
- Select Power Automate.
- Name your activation and add a description.
- Pick the audience you want to use in this activation. Example: Run the webhook when a user joins this audience: Apple users + no sign-up.
- Select the data you want to send when a user joins the selected audience (the webhook is triggered). But don’t add the webhook URL yet.
- Switch to Advanced and copy the data in JSON.
- Modify the copied JSON by adding
"test"
as values. Example:{ "email": "test", "page_url": "test", "city": "test", "subscription": "test" }
- Go back to Power Automate and click Use sample payload to generate schema.
- Paste the modified JSON code from Piwik PRO and click Done.
- Click + New step.
- Choose and set up the tool to which you want to send the data.
- Click Save.
- Copy the HTTP POST URL. This is your webhook URL, which you’ll need to set up the activation in Piwik PRO.
- Go back to Piwik PRO.
- Enter the webhook URL from Power Automate.
- Click Send test data to make sure the webhook works. If it works, you’ll see a green success message.
- Choose whether you want to activate the user:
- Once: A user is activated only the first time they join this audience.
- Multiple times: A user is activated each time they join this audience.
- (Optional) Choose to activate users who have multiple user IDs.
- In Consent filter, select the consents that should be given to use user profile data.
Note: Make sure you collect these consents using the consent form on your site. Read more
- Click Create.
- Done! From now on, every time a user joins the selected audience, their data will be sent to Power Automate and trigger the action in the selected tool. Of course, only if the user has given the necessary consent.
Watch more tutorials on YouTube: