Home / Widgets / Change TikTok purchase Event
Duplicate Snippet

Embed Snippet on Your Site

Change TikTok purchase Event

When using the WPCode Conversion Pixels addon the event name used when a purchase is completed is "PlaceAnOrder" by default. Use this snippet if you want to change the event name to "CompletePayment".

<10
Code Preview
php
<?php
add_filter('wpcode_pixel_event_name_tiktok', function( $event_name, $event_key) {
	if ( 'purchase' === $event_key ) {
		return 'CompletePayment';
	}
	return $event_name;
}, 10, 2 );

Comments

Add a Comment