Close Menu
Christian Web Trends Blog: Church Websites, Design, SEO
    • Get Started
      • Build a Website
      • Get a Custom Designed Website
      • Get Better Search Rankings
    Facebook X (Twitter) YouTube Instagram Pinterest RSS
    Christian Web Trends Blog: Church Websites, Design, SEOChristian Web Trends Blog: Church Websites, Design, SEO
    • WEBSITE BUILDER
      • Website Builder
      • Web Hosting
      • Web Builder Themes
      • Build Website Faster
      • Web Hosting FAQs?
    • WEB DESIGN
      • Web Design
      • Web Design Portfolio
      • Web Design Prices
      • Logo Design
      • Full WordPress Service
      • Web Design FAQs?
    • SEO
      • SEO
      • Church SEO
      • Business SEO
      • School Marketing
      • Ministry Marketing
      • SEO Services
      • SEO FAQs?
    • ABOUT OURCHURCH.COM
      • About
      • Services
      • News
      • Blog
    • Get Started
      • Build a Website
      • Get a Custom Designed Website
      • Get Better Search Rankings
    Christian Web Trends Blog: Church Websites, Design, SEO
    Home»blogging»How to Track Twitter Referrals from a WordPress Blog

    How to Track Twitter Referrals from a WordPress Blog

    Richard WardBy Richard WardJan 27, 2011Updated:Feb 9, 20234 Comments2 Mins Read

    Here at OurChurch.Com we use Google Analytics extensively to track what is trackable. Everything from referral traffic sources to click through rate information on specific keywords can be tracked and easily interpreted in graphical format once Google Analytics is fully integrated into your site

    One trackable element that seemed to escape our tracking data was when our links are shared using our Tweet button and capturing event tracking data from those user actions. Questions such as whether or not visitors are sharing links from our blog homepage or the individual post, where to properly place the tweet button to get the most clicks, how much traffic is our site receiving from our posts being shared on Twitter, etc. were yet to be answered.

    To solve this problem, we implemented Nicolas Gallagher’s WordPress modification “Custom Tweet Button for WordPress“. The Custom Tweet Button modification consists of adding two php files to your WordPress configuration and making several edits to your theme’s functions.php and styles.css files. The Tweet Button created by this add on is simple HTML and the webmaster has full control over the exact call sent to the Twitter service. Since the webmaster has full control over the call, it is possible to easily embed Google Analytics campaign tracking information.

    You will need a bit.ly API key to use the modification. When we signed up, bit.ly API key generation was a manual process and took a few days to complete. Once you have your full API key you have everything you need to implement this custom modification to your own WordPress setup.

    After you have made the appropriate file modifications and uploaded the files included in the modification package, adding the tweet button is a simple matter of calling the function tweet_button in your desired template file (for an individual post, you will call the function in your single.php file).

    Adding your own custom tweet button gives you full control over the HTML/CSS of your Tweet button, saves all of your click/referrer data to your bit.ly account, speeds up your page loads since there’s no need for javascript or iframes and makes it simple to add in Google Analytics for even more data.

    Do you have your own blog? Do you use WordPress? Are you currently tracking your Twitter data in anyway? Share your data tracking experiences in the comments.

    Richard Ward
    Richard Ward

    Richard Ward is a Sr. Web Applications Developer for OurChurch.Com. Richard’s professional background is in LAMP style web development. Richard is also a technology enthusiast with a strong interest in emerging technologies. You can reach him at richard@ourchurch.com or on Twitter at @OCCRichard.

    Share and Enjoy !

    Shares
    Richard Ward
    • Website

    Richard Ward is a Sr. Web Applications Developer for OurChurch.Com. Richard's professional background is in LAMP style web development. Richard is also a technology enthusiast with a strong interest in emerging technologies. You can reach him at richard@ourchurch.com or on Twitter at @OCCRichard.

    View 4 Comments

    4 Comments

    1. Pingback: Tweets that mention How to Track Twitter Referrals from a Wordpress Blog | Christian Web Trends Blog -- Topsy.com

    2. Pingback: How to Track Twitter Referrals from a Wordpress Blog | Christian …

    3. Pingback: Pro Blogger News

    4. Homemade Potato Soup on Jan 15, 2012 4:17 am

      How to Track Twitter Referrals from a WordPress Blog | Christian Web Trends Blog I was suggested this blog by my cousin. I’m not sure whether this post is written by him as nobody else know such detailed about my difficulty. You are amazing! Thanks! your article about How to Track Twitter Referrals from a WordPress Blog | Christian Web Trends BlogBest Regards Craig

    Don’t Miss Anything!

    Get our weekly Christian Web Trends email!

    About

    Our mission is to help Christian organizations live out their mission online. We provide them with amazing web hosting, web design and SEO services and insightful blog content.

    Let’s Chat!

      I am interested in talking with someone about:
      Custom WebsiteSEOBoth

      Facebook X (Twitter) YouTube Instagram Pinterest RSS
      © 2025 Christian Web Trends Blog. All Rights Reserved.

      Type above and press Enter to search. Press Esc to cancel.

      Share

      Blogger
      Delicious
      Digg
      Email
      Facebook
      Facebook messenger
      Flipboard
      Google
      Hacker News
      Line
      LinkedIn
      Mastodon
      Mix
      Odnoklassniki
      PDF
      Pinterest
      Pocket
      Print
      Reddit
      Renren
      Short link
      SMS
      Skype
      Telegram
      Tumblr
      Twitter
      VKontakte
      wechat
      Weibo
      WhatsApp
      X
      Xing
      Yahoo! Mail

      Copy short link

      Copy link