- Posts: 80
- Thank you received: 2
Conversion Tracking Code for Events Booking
- Eoin Feeney
- Topic Author
- Offline
- Premium Member
-
Less
More
2 months 1 hour ago #172694
by Eoin Feeney
Conversion Tracking Code for Events Booking was created by Eoin Feeney
I see there is a field for "conversion tracking" which is a great start, but how would I add custom information to this?
At the bare minimum we need to add quantity and price as well as the product name.
But usually for Meta tracking I also add IP address, email address and stuff like that.
Is there a PHP override I can do somehow?
At the bare minimum we need to add quantity and price as well as the product name.
But usually for Meta tracking I also add IP address, email address and stuff like that.
Is there a PHP override I can do somehow?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
1 month 4 weeks ago #172698
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Conversion Tracking Code for Events Booking
Hi Eoin
Please see docs.joomdonation.com/eventsbooking/basi...ersion-tracking-code for instructions. The IP address and email tags are not supported. So if you need these tags, let me know and I can update code to support these tags. It's easy. Just let us know list of tags/information you want to use and we will implement it
Regards,
Tuan
Please see docs.joomdonation.com/eventsbooking/basi...ersion-tracking-code for instructions. The IP address and email tags are not supported. So if you need these tags, let me know and I can update code to support these tags. It's easy. Just let us know list of tags/information you want to use and we will implement it
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Eoin Feeney
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 80
- Thank you received: 2
1 month 4 weeks ago #172704
by Eoin Feeney
Replied by Eoin Feeney on topic Conversion Tracking Code for Events Booking
Yes please as the more information we have the better Meta can analyse conversions and make recommendations and the cheaper our ads can be.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
1 month 4 weeks ago #172711
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Conversion Tracking Code for Events Booking
Honestly, I do not have experience with Meta conversions, so please list all the information you need so that I can bring support for these data
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Eoin Feeney
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 80
- Thank you received: 2
1 month 4 weeks ago #172714
by Eoin Feeney
Replied by Eoin Feeney on topic Conversion Tracking Code for Events Booking
This is our code from a previous Joomla system:
<!-- Add Conversion Tracking such as Google Analytics and Meta Pixel -->
<script>
{
"data": [
{
"event_name": "Purchase",
"event_time": 1711031322, /* 10 digit time stamp */
"event_time": <?php (int) $data; ?>,
"action_source": "website",
"user_data": {
"em": [
"<?php sha256hash($data); ?>" /* Email */
],
"ph": [
"<?php sha256hash($data); ?>" /* PHONE NUMBER */
],
"fn": [
null
]
},
"custom_data": {
"currency": "GBP",
"value": "<?php (float)$data; ?>"
}
}
]
}
</script>
<!-- End conversion tracking -->
fn is fax number
I also want IP address.
Please note that some of it MUST be hashed, it's mandatory from the system.
<!-- Add Conversion Tracking such as Google Analytics and Meta Pixel -->
<script>
{
"data": [
{
"event_name": "Purchase",
"event_time": 1711031322, /* 10 digit time stamp */
"event_time": <?php (int) $data; ?>,
"action_source": "website",
"user_data": {
"em": [
"<?php sha256hash($data); ?>" /* Email */
],
"ph": [
"<?php sha256hash($data); ?>" /* PHONE NUMBER */
],
"fn": [
null
]
},
"custom_data": {
"currency": "GBP",
"value": "<?php (float)$data; ?>"
}
}
]
}
</script>
<!-- End conversion tracking -->
fn is fax number
I also want IP address.
Please note that some of it MUST be hashed, it's mandatory from the system.
Please Log in or Create an account to join the conversation.
- Eoin Feeney
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 80
- Thank you received: 2
1 month 1 week ago #172897
by Eoin Feeney
Replied by Eoin Feeney on topic Conversion Tracking Code for Events Booking
Here are all the things you could track, the more you track the more accurate your advertising, the better your conversions and the lower your cost per conversion.
snipboard.io/PNAeJC.jpg
snipboard.io/PNAeJC.jpg
Please Log in or Create an account to join the conversation.
- Eoin Feeney
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 80
- Thank you received: 2
1 month 1 week ago - 1 month 1 week ago #172901
by Eoin Feeney
Replied by Eoin Feeney on topic Conversion Tracking Code for Events Booking
Here is some further information
Main Body Parameters
data
test_event_code
Customer Information Parameters
em: Email — Hashing required
ph: Phone Number — Hashing required
fn: First Name — Hashing required
ln: Last Name — Hashing required
ge: Gender — Hashing required
db: Date of Birth — Hashing required
ct: City — Hashing required
st: State — Hashing required
zp: Zip Code — Hashing required
country: Country — Hashing required
external_id: External ID — Hashing recommended
client_ip_address: Client IP Address — Do not hash
client_user_agent: Client User Agent — Do not hash
fbc: Click ID — Do not hash
fbp: Browser ID — Do not hash
subscription_id: Subscription ID — Do not hash
fb_login_id: Facebook Login ID — Do not hash
lead_id: Lead ID — Do not hash
anon_id: Install ID — Do not hash (Note: This parameter is for app events only)
madid: Mobile Advertiser ID — Do not hash (Note: This parameter is for app events only)
page_id: Page ID — Do not hash
page_scoped_user_id: Page scoped user ID — Do not hash
ctwa_clid: Click to WhatsApp ID — Do not hash
ig_account_id: IG account ID — Do not hash
ig_sid: Click to Instagram ID — Do not hash
Server Event Parameters
event_name
event_time
user_data
custom_data
event_source_url
opt_out
event_id
action_source
data_processing_options
data_processing_options_country
data_processing_options_state
referrer_url
customer_segmentation
Main Body Parameters
data
test_event_code
Customer Information Parameters
em: Email — Hashing required
ph: Phone Number — Hashing required
fn: First Name — Hashing required
ln: Last Name — Hashing required
ge: Gender — Hashing required
db: Date of Birth — Hashing required
ct: City — Hashing required
st: State — Hashing required
zp: Zip Code — Hashing required
country: Country — Hashing required
external_id: External ID — Hashing recommended
client_ip_address: Client IP Address — Do not hash
client_user_agent: Client User Agent — Do not hash
fbc: Click ID — Do not hash
fbp: Browser ID — Do not hash
subscription_id: Subscription ID — Do not hash
fb_login_id: Facebook Login ID — Do not hash
lead_id: Lead ID — Do not hash
anon_id: Install ID — Do not hash (Note: This parameter is for app events only)
madid: Mobile Advertiser ID — Do not hash (Note: This parameter is for app events only)
page_id: Page ID — Do not hash
page_scoped_user_id: Page scoped user ID — Do not hash
ctwa_clid: Click to WhatsApp ID — Do not hash
ig_account_id: IG account ID — Do not hash
ig_sid: Click to Instagram ID — Do not hash
Server Event Parameters
event_name
event_time
user_data
custom_data
event_source_url
opt_out
event_id
action_source
data_processing_options
data_processing_options_country
data_processing_options_state
referrer_url
customer_segmentation
Last edit: 1 month 1 week ago by Eoin Feeney.
Please Log in or Create an account to join the conversation.
- Eoin Feeney
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 80
- Thank you received: 2
1 month 1 week ago - 1 month 1 week ago #172902
by Eoin Feeney
Replied by Eoin Feeney on topic Conversion Tracking Code for Events Booking
So for example when I build my payload it ends up looking like this:
'{
"data": [
{
"event_name": "Purchase",
"event_time": 1751565845,
"action_source": "website",
"event_id": null,
"event_source_url": null,
"user_data": {
"em": [
"7b17fb0bd173f625b58636fb796407c22b3d16fc78302d79f0fd30c2fc2fc068"
],
"ph": [
null
],
"ct": [
null
],
"country": [
null
],
"fn": [
null
],
"ln": [
null
],
"st": [
null
],
"zp": [
null
]
},
"attribution_data": {
"attribution_share": "0.3"
},
"custom_data": {
"currency": "GBP",
"value": "142.52",
"num_items": null
},
"original_event_data": {
"event_name": "Purchase",
"event_time": 1751565845
}
}
]
}'
FN = FirstName
LN = LastName
ST = State
numItems = Quantity of bookings
ZP = Zip Code
CT = City
PH = Phone
Event _it = the id of the Bookings event
Event_source_url = the url where the event was booked from.
developers.facebook.com/docs/marketing-a...sions-api/parameters
It would be just as easy for me to use PHP to create this conversion in many cases. Is there a file I could override?
'{
"data": [
{
"event_name": "Purchase",
"event_time": 1751565845,
"action_source": "website",
"event_id": null,
"event_source_url": null,
"user_data": {
"em": [
"7b17fb0bd173f625b58636fb796407c22b3d16fc78302d79f0fd30c2fc2fc068"
],
"ph": [
null
],
"ct": [
null
],
"country": [
null
],
"fn": [
null
],
"ln": [
null
],
"st": [
null
],
"zp": [
null
]
},
"attribution_data": {
"attribution_share": "0.3"
},
"custom_data": {
"currency": "GBP",
"value": "142.52",
"num_items": null
},
"original_event_data": {
"event_name": "Purchase",
"event_time": 1751565845
}
}
]
}'
FN = FirstName
LN = LastName
ST = State
numItems = Quantity of bookings
ZP = Zip Code
CT = City
PH = Phone
Event _it = the id of the Bookings event
Event_source_url = the url where the event was booked from.
developers.facebook.com/docs/marketing-a...sions-api/parameters
It would be just as easy for me to use PHP to create this conversion in many cases. Is there a file I could override?
Last edit: 1 month 1 week ago by Eoin Feeney.
Please Log in or Create an account to join the conversation.
- Eoin Feeney
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 80
- Thank you received: 2
1 month 1 week ago #172903
by Eoin Feeney
Replied by Eoin Feeney on topic Conversion Tracking Code for Events Booking
I have copied:
components/com_eventbooking/themes/default/complete/default.php
to
templates/yootheme/html/com_eventbooking/complete/default.php
For anyone else, this is where you can add your conversion tracking code.
components/com_eventbooking/themes/default/complete/default.php
to
templates/yootheme/html/com_eventbooking/complete/default.php
For anyone else, this is where you can add your conversion tracking code.
Please Log in or Create an account to join the conversation.
- Eoin Feeney
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 80
- Thank you received: 2
1 month 1 week ago #172906
by Eoin Feeney
Replied by Eoin Feeney on topic Conversion Tracking Code for Events Booking
I have the code for this but the forum won't let me upload it for some reason. Maybe I'll release a plugin instead.
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.