# Marketing tracking with several channels + 2 different sites

**URL:** <https://community.piwik.pro/t/marketing-tracking-with-several-channels-2-different-sites/3040>\
**Category:** Data collection and tags\
**Created:** [October 13, 2023, 8:02pm UTC](https://community.piwik.pro/t/marketing-tracking-with-several-channels-2-different-sites/3040 "2023-10-13T20:02:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BT\_nista](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@BT\_nista](https://community.piwik.pro/u/BT_nista)\
**Post date:** [October 13, 2023, 8:02pm UTC](https://community.piwik.pro/t/marketing-tracking-with-several-channels-2-different-sites/3040/1 "2023-10-13T20:02:54Z")

</div>

Hi all,

we have a website and also our application, which we are both tracking with PIWIK (different tracking codes). Our website has several CTA’s linking to our app where you can register for free.  
We are using LinkedIn, Facebook, go on events and use Google Ads as marketing channels, which we want to report on.

Now, I got the request that we want to track the “origin” of our app sign-ups e.g.: a user clicks on an ad (or an LI/FB post) he’ll be sent to our website, there he clicks on any CTA and gets sent to our app where he registers himself.

What would be the best approach for tracking this visitor journey and mark it as a goal after successful sign-up? So in the end I want to know the “origin” of the sign-up, is it LI, FB or GAds.

Thanks in advance.

Best regards,  
Barbara

---

<div class="post-metadata">

**Author:** ![asinior](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/asinior/32/1905_2.png) [@asinior](https://community.piwik.pro/u/asinior)\
**Post date:** [October 16, 2023, 12:36pm UTC](https://community.piwik.pro/t/marketing-tracking-with-several-channels-2-different-sites/3040/2 "2023-10-16T12:36:17Z")

</div>

Hi,  
In case of a web environment, the origin is tracked by default based on parameters included in the URL that directed the visitor to your site. So, it could be simply achieved by a conditional in your custom report that would filter out the data based on the value of the **Source/medium** dimension (LI, FB, GAds and so on). If there are parameters that are not recognized automatically then you could add them manually in the **Administration** settings. Here is an article on that: [How can I customize Piwik PRO campaign parameters? | Piwik PRO help center](https://help.piwik.pro/support/questions/how-can-i-customize-piwik-pro-campaign-parameters/)

As for the application, we have a SDK method that tracks campaigns based on different URL values. Here is on how to set it up: [Piwik PRO SDK for Android — Piwik PRO Analytics Suite 18.3 documentation](https://developers.piwik.pro/en/latest/data_collection/mobile/Piwik_PRO_SDK_for_Android.html#tracking-deep-links-and-campaigns)

You could save the information about the source of the visitor in the dataLayer and based on that and other conditions in the dataLayer structure, i.e. track goal after the signUp event is present, fire a goal conversion tag. A similar trigger could be set up based on the value in the **stg\_externalReferrer** cookie which contains data about the URL of the site that referred the visitor to your site. Here is more information on the stg\_externalReferrer cookie: [Cookies created for visitors by Piwik PRO | Data and cookies | Piwik PRO help center](https://help.piwik.pro/support/privacy/cookies-created-for-visitors-by-piwik-pro/)

However, if you want to track the Web + App visitor journey then for now we do not have a solution that allows that and we are still working on improving this.

Let me know if this answers all of your doubts.

---

<div class="post-metadata">

**Author:** ![BT\_nista](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@BT\_nista](https://community.piwik.pro/u/BT_nista)\
**Post date:** [October 16, 2023, 6:41pm UTC](https://community.piwik.pro/t/marketing-tracking-with-several-channels-2-different-sites/3040/3 "2023-10-16T18:41:49Z")

</div>

Hi,

thanks for the answer, but I think I wasn’t clear about “application” - we have a SaaS software which runs in the web browser - so basically a second website.

I was thinking about using the same tracking code on the app site to track the visitor journey for the sign-up process, but will I be able to distinguish the visitors between the two sites?  
Because I want to track the website visitors only - the app visitors should not be included in that number.

Best regards,  
Barbara

---

<div class="post-metadata">

**Author:** ![asinior](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/asinior/32/1905_2.png) [@asinior](https://community.piwik.pro/u/asinior)\
**Post date:** [October 17, 2023, 6:23am UTC](https://community.piwik.pro/t/marketing-tracking-with-several-channels-2-different-sites/3040/4 "2023-10-17T06:23:25Z")

</div>

You could easily recognize visitors in case of the same tracking code by using the Page URL dimension to filter the data out in your custom reports or filter it out by using the same Page URL dimension in the conditions of the reports.

Also, you can use segments to achieve a similar goal: [Group visitors into segments | Piwik PRO help center](https://help.piwik.pro/support/reports/segments/)
