PHP code example of claytoncollie / tracking-code-for-twitter-pixel

1. Go to this page and download the library: Download claytoncollie/tracking-code-for-twitter-pixel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

claytoncollie / tracking-code-for-twitter-pixel example snippets


add_filter(
	'tracking_code_for_twitter_pixel_id',
	/**
	 * Set Twitter Pixel tag ID.
	 *
	 * @param string $tag_id Tag ID.
	 *
	 * @return string
	 */
	function ( $tag_id ) {
		return '123456789';
	}
);