Socialized

Description

Socialized adds social media sharing buttons to your posts, pages, and custom post types that are automatically integrated with Google Analytics using campaign parameters. When a user shares your post using these buttons, they can share a vanity URL that is either automatically generated or customized by you and is specific to that button. When another user on social media then clicks on that shared link, the vanity URL redirects them to your page with analytics tracking automatically.

By adding campaign parameters to the destination URLs, you can collect information about the overall efficacy of these campaigns, and also understand where the campaigns are more effective. For example, your “Summer Sale” campaign might be generating lots of revenue, but if you’re running the campaign on several social media platforms, you’ll want to know which of them is sending you the customers who generate the most revenue. Or if you’re running different versions of the campaign via email, video ads, and in-app ads, you can compare the results to see where your marketing is most effective.

The campaign parameters that are automatically added are sent to Google Analytics when a user clicks on one of the shared links, and the related data is available in the campaigns reports. Below is a list of the campaign parameters that are added and their possible values:

  • utm_source. Possible value(s): facebook | twitter | linkedin | pinterest
  • utm_medium. Possible value(s): social
  • utm_content. Possible value(s): socialized-share-link
  • utm_campaign: Possible value(s): socialized | or define in Settings
  • utm_term: Possible value(s): Defined by typing in the text box in the metabox on the post or page | or the “Focus keyphrase” by Yoast SEO

Your permalink struture will not be affected. The randomly generated vanity URLs are automatically created when you save the post. Learn more about custom campaigns in Google.

Screenshots

  • Plugin settings screen
  • The Socialized plugin general meta box. You'll see this on edit post pages for posts, pages, and custom post types that you've set to allow in the settings.
  • The default appearance of the social media sharing buttons using images. There is no hover state.
  • The default appearance of the social media sharing buttons using Font Awesome. When active, focused, or hovering over a button, the icon animates to be rounded. E.g. the LinkedIn icon.
  • The default appearance of the social media sharing buttons as text. When active, focused, or hovering over a button, the icon animates the background and text colors to swap. E.g. the LinkedIn icon.

Installation

There are three (3) ways to install my plugin: automatically, upload via WordPress admin, or manually.

Automatic Installation

Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t need to leave your web browser.

  1. Log in to your WordPress dashboard.
  2. Navigate to Plugins > Add New.
  3. In the search form, type “Socialized” and click the Search Plugins button.
  4. Once you’ve found my plugin in the search results that appear, click the Install Now button and wait for the installation process to complete.
  5. Once the installation process is completed, click the Activate button to activate my plugin.

Upload via WordPress Admin

This method involves is a little more involved. You don’t need to leave your web browser, but you’ll need to transfer the files yourself.

  1. Download my plugin from WordPress.org.
  2. Log in to your WordPress dashboard.
  3. Navigate to Plugins > Add New.
  4. Click the Upload Plugin button at the top of the screen.
  5. Select the zip file from your local file system that was downloaded in step 1.
  6. Click the Install Now button and wait for the installation process to complete.
  7. Once the installation process is completed, click the Activate button to activate my plugin.

Manual Installation

This method involves downloading my plugin, extracting the files from the zip file, and uploading them to your webserver via your favorite SFTP application. Instructions on how to do this here.

After Activation

  1. Navigate to Tools > Socialized to change any global settings to fit your needs.
  2. When creating new posts or editing existing ones, use the meta box to configure settings specific to that post.
  3. Publish your post to see the buttons on the page.

FAQ

What platforms are supported?

Facebook, Twitter, LinkedIn, and Pinterest are supported.

Can I change the name of the campaign?

Yes! You can change the name of the campaign, or the value of utm_campaign, from the plugin settings page.

Can I change the vanity URL?

Yes! When a new post is created, a random string of will be generated for that post, but you can edit it to whatever you want. However, it will be suffixed with a dash and a character to recognize the platform and map it to the correct campaign parameters.

Does this affect my page’s URL, permalink, or canonical URL?

No. This won’t have any effect on your page’s URL, permalink, permalink settings, or canonical URL. The vanity URL is simply another way of getting to your page but with the added Google campaign parameters automatically added. This plugin does not create any new pages, only redirects, so there won’t be any duplicate content issues.

Does this affect my page’s SEO or “page rank”?

It will not harm your page’s SEO. Since the vanity URLs redirect using 301 permanent redirects, the “page rank” is transferred to your original page, preserving your SEO value.

Does this affect my domain authority?

Yes. Using a URL shortener service like bit.ly or TinyURL gets a miniscule amount of “domain authority” when pages are redirected through their domains since it is ultimately their URL that gets shared on other websites. You actually gain this bonus back when it is your domain that gets shared instead.

How does it choose an image to share on Pinterest?

If there is an image in the content of your article, it will find the first one and use that. Otherwise, it will fall back to using the featured image. If no image is associated with the article, then Pinterest will display all of the images found on the page, allowing the user to select which they want to use.

What icons do you have?

You can choose between lossless PNG images, Font Awesome 5 icons, or English text. The HTML is simple so you can easily change the appearance with CSS.

Is this compatible with the Yoast SEO plugin?

Yes! If you leave the “Campaign Term” blank in the metabox on your page, the utm_term value will default to your page’s “focus keyphrase” in Yoast SEO’s metabox.

I’m a developer and I want to contribute!

That’s awesome, thank you! The source code is available on GitHub here.

Suradnici i Programeri

“Socialized” is open source software. The following people have contributed to this plugin.

Contributors

Prevedite “Socialized” na svoj jezik.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.2.4

Release Date: August 8, 2019

  • Fix: Removed extra double quote from Pinterest’s share link so outputted HTML is W3C compliant again.

1.2.3

Release Date: July 1, 2019

  • Fix: Resolved bug where custom post types were not getting redirected from the 404 page.
  • Text: Updated short description of plugin to be more descriptive.

1.2.2

Release Date: June 18, 2019

  • Fix: Resolved small text error in the title attribute of the frontend links.

1.2.1

Release Date: June 17, 2019

  • Fix: Changed image icon’s alt text from “platform Icon” to “Share on platform
  • Fix: Set image icon’s margin to 0 as default CSS to fix screen reader mouse selection.

1.2.0

Release Date: June 4, 2019

  • Feature: Added two (2) button placements: stick left and right.

1.0.1

Release Date: May 31, 2019

  • Fix: Sanitized input data to improve security.
  • Fix: Escaped outputs to help secure data.
  • Fix: Enqueued Font Awesome stylesheet for Settings admin page.
  • Fix: Updated languages location.

1.0.0

Release Date: May 30, 2019

  • Major: First release to the public!