User needs it in his footer so I think you should use conditional page logic. Something like:
If ( is_single(postID)) { //insert tracking code }
You can also use the post title or post slug, but id is the most reliable.
Old Answer
I would consider writing a shortcode. Add the following to your functions.php file. You can specify input parameters. In this case I specify id and target.
add_shortcode( 'signup', 'signup_shortcode' );
function signup_shortcode( $atts ) {
extract( shortcode_atts( array(
'id' => '',
'target' => '',
), $atts ) );
$HTML = 'hello world'.$id;
return $HTML;
}
Then call it in your post like so:
[signup id="1234" target="goog"]
Related Posts:
- Disable plugin / plugin action via theme
- Add Google Analytics manually, or use a plug-in?
- Can YOAST SEO fields be removed from custom post type [duplicate]
- Should a SEO plugin be necessary? [closed]
- How are plugins in the WordPress plugin directory ranked?
- Need a WordPress Plugin for Google Analytics, Favicon, Meta Keywords & Description?
- Google Analytics post views in WordPress? [closed]
- A plugin for having rel=”nofollow” in posts?
- How to add nofollow on all external links without plugin?
- WordPress web page struggling with performance
- Suspicious google tag manager
- add_filter the_content in functions.php not working
- Tracking Disqus comments on Google Analytics
- XML sitemap over product variations
- Regenerate images with automatic ALT and TITLE attributes
- Can a plugin deactivate itself?
- How to set a custom title per language?
- Are there any plugins yet that support Facebook Like, Google +1 and allow Social Interaction tracking on Google Analytics
- qTranslate conflicts with SEO-plugins [closed]
- Plugin: Google Analytics for Dashboard error – Timestamp is too far from current time
- Yoast SEO plugin “could detect no serious SEO problems” on dashboard
- WordPress Sitemap including pages that aren’t there
- SEO Friendly URL on dynamic product page produced via shortcode
- install robots.txt to wordpress website admin
- Check if SEO plugin installed
- Show Sitename on Yoast SEO Title tag [closed]
- Help in using SEO Plugins: SEO Ultimate And Yoast SEO Plugin
- Yoast SEO settings unavailable in an archive page from wordpress plugin
- Invalid plugin installation directory, Google Analytics [closed]
- how to connect the author profile with google webmaster tools in multiuser blog?
- How to install Google Analytics onto site without internet access
- Yoast Force Rewrite Crashed Site [closed]
- Moving to a WordPress blog. What do I need to know?
- Is changing post from category in a large blog a good practice?
- XML Sitemap Generator can’t notify google and bing
- Why is Google Search Console getting X-Robots-Tag noindex?
- How to remove index meta tag
- How to integrate together a website currently hosted WordPress.com and a custom web application currently hosted on Azure?
- Where does MonsterInsights put Google Analytics code?
- How to track analytics with a WordPress site under the same domain as my main site?
- WordPress gtag.js with User ID tracking
- Site shows URL instead of “meta title” after deleted few plugins (not any SEO plugin was deleted)
- Plugin for TinyMCE to create reference to other posts
- Preserve Search engine index while shifting to new Domain
- How do I fill the Home Description?
- Google Analytics event tracking code being stripped out of links in Author box – WordPress site
- WordPress Sitemap for MSSQL
- custom wordpress theme and yoast seo injecting text in body
- how does ‘init’ /’parse_request’ hook work for wordpress?
- How to set Google Analytics tracking code on WordPress plugin directory page?
- WordPress built-in compression of images? How well does it compare to Photoshop or Shortpixel?
- Get the link title attribute and send it google analytics as custom label via google tag manager using beehive pro for WordPress
- Remove Keywords From Webpage But Still Use for SEO
- Does anyone know why my SEO and title become one?
- How page with random php file with query params generated
- My wordpress local urls is still displayed even moved to live
- Different Google Analytics code based on Users Device
- Writing SEO for Homepage when homepage is set to display latest posts
- SEO Site Title appearing in google search despite not being added
- Facebook sharing image error with facebook debug
- Tracking sales/conversions in Woocommerce using Google Analytics
- Same Title on two different post type with single custom taxonomy
- Yoast Seo Plugin meta title not showoing [closed]
- Google analytic issue in wordpress
- How to markup wordpress site using Schema.org?
- Problem with Duplicate Meta / tag description in Webmaster Tool [duplicate]
- Does Google detect files in the WordPress plugin directory
- Strange Search Query Appearing on Google Index – “/?q=Save+Us+From+Berlusconi”
- Automatically set posts to NoIndex depending on category?
- Do shortcodes affect page indexing by search engines?
- Google analytics not working on WordPress
- getting image alt text via ACF plugin in WordPress [closed]
- How should I force WordPress to give proper name for the uploading images?
- Possible to change meta data single quotes to dobule quotes in yoast wordpress seo? [closed]
- Seo Problems in My meta Discription [closed]
- De-index plugin files
- Plugins menu not on dashboard
- how to make yoast seo read text from custom fields in custom post type
- Page with redirect
- How can I add a featured image to a page?
- How to generate/update a XML sitemap without plugins?
- How to assign user a role if none is present when logging in
- How to remove style and js from theme and add your own style and js where shortcode is used?
- Get posts from WP_Query and format them on admin_head
- Set and access global variable
- Theme/Plugin installation through url on button click
- Bulk Image Upload And Rerrange Functionality
- facebook Page Publish 2
- Understanding State in WordPress Multisites
- How to activate a plugin on the activation of a theme?
- Custom Login Page — wp_signon Headers Already Sent?
- How to make a dynamic css class whose name changes every visit to confuse scraper
- Deactivation Hook does not remove database
- override plugin function in a class not working
- Performing CRUD operations on front end in wordpress
- Create a link that calls our custom function in WordPress
- {status}_{post_type} does not run correctly?
- Upload profil picture to every member
- Please Check this ‘.htaccess’ File
- WordPress REST API Visual Composer Shortcodes