Custom events in Meta

We can use a set of predefined events in Meta but for most of our clients, the list is not sufficient. We added some predefined tracking tags for them, but really want to work with custom events too and tried it with 2 tags using custom code (async). Doesn’t seem to work… How do we get it to work?

Code is:

Hi @jurgen.vandevelde

Could you provide an example of a custom event you would like to track and is not working?
When it comes to tracking custom events you should either use custom event tag or custom code (async) with the JS method for collecting custom events: Guides — Piwik PRO Analytics Suite 18.24 documentation

Best,
Oliwer

Hello Oliwer

It is a not a custom Piwik event, I know how to create those :smile: It is more a question of how we can send custom Meta events. An example piece of code is:

fbq(‘trackCustom’, ‘ShareDiscount’, {promotion: ‘share_discount_10%’})

(See Conversion Tracking - Meta Pixel - Documentation - Meta for Developers - Tracking custom events).

How do we do that? Currently, your Meta tag in Piwik Tag Manager only supports Standard events.

My bad,

As far as I understand, to be able to use it you have to first have the Meta Pixel Tag running Meta Pixel tag | Piwik PRO help center. (make sure you followed this section: Check if your pixel is working from the article)
Once it is, accoring to the article Conversion Tracking - Meta Pixel - Documentation - Meta for Developers, all you have to do is call a proper function which you can do with our Tag Manager.

Hello Oliwer.
This still doens’t solve my question. I checked if the Meta Pixel is working and it indeed does work. All standard events also work. (ouf :slight_smile: )
When it comes to custom events, which I set up using custom code (async), they don’t work and I would like to know how. There must be some documentation on your part on how to get these to work?
Can share the account in DM, if you want?

If those custom code tags are firing without any issues and the code is added to the page, then I’m not sure if there’s anything on Piwik PRO side that could be done here. I can check it, but if the issue is on meta side I won’t be able to help much. I can only help if there’s anything wrong with the Piwik PRO implementation or other. When it comes to documentation:

Here’s the Meta Pixel tag doc: Meta Pixel tag | Piwik PRO help center
And here’s custom code (async) tag doc: Custom code (async) tag | Piwik PRO help center

Please, share a link to a page where the tag should be firing (and with information about under what conditions it should fire) via DM so I can check what is happening. But again, if the issue is: Required by Meta code is present on the page but meta does not track it, there’s not much help Piwik PRO can offer, as the issue is not on our tool side.

Hi @jurgen.vandevelde,

After visiting your page I noticed a particular error in console that is the reason why the Meta tag does not work:
image

It’s because in the script sending those custom events, for the custom event name string you are using:
image
Which is incorect
After sending the same line with correct ‘’ signs in console I was able to find the request sent to Meta inside of network

Best,
Oliwer