Skip to main content

Home/ Online Conversion/ Group items tagged expressions

Rss Feed Group items tagged

Brian Massey

Regular Expressions Guide for SEO, Google Analytics & Google Tag Manager - 0 views

  •  
    Regular expressions rear their ugly head in more and more places. Google Analytics is just one.

    For me the regular expression showed up in the excellent Yoast SEO plugin for Wordpress. I needed to redirect a URL that had parameters, like this:

    http://conversionsciences.com/conversion-upside-report/?t=10000&v=344&x=250

    To do this, I could not use a regular redirect, as everything after the ? would be stripped away. I needed to use a Regular Expression Redirect. However, this sort of thing -- using query parameters -- wasn't covered in any of the Yoast documentation.

    This article gave me the hint I needed, and the technique that ended up working. To summarize, I used the following regular expression to match my URL with the parameters:

    ^\/conversion-upside-report($|\/.*$)

    The parentheses save the matching contents into a variable, which I can access using $1 in the new URL, like this:

    resources/conversion-rate-optimization-calculator/upside-report/$1

    It worked great. Give it a try: http://conversionsciences.com/conversion-upside-report/?t=10000&v=344&x=250

    Thanks to Himanshu.
Brian Massey

http://www.lunametrics.com/regex-book/Regular-Expressions-Google-Analytics.pdf - 0 views

  •  
    Great primer on regular expressions for Google Analytics. You don't have to be a programmer to get something from regular expressions.
Brian Massey

The Total Content Approach | AustinAMA - 0 views

  •  
     @flabastida lists ten "steps" for a "Total Content Approach." Taking these all together, it becomes clear that a business or a brand is fully realized only through its content. We can no longer rely on slogans and manipulation. A brand now has hopes, fears and dreams. Businesses must express opportunity as well as possibility. Don't worry. Our customers are there to help us understand ourselves.
1 - 3 of 3
Showing 20 items per page