Optimize You CPVLab Pt.2

Hi Guys,

Yes, it’s been a while, I’ve been moving around a lot, and frankly haven’t been all too inspired to post anything lately. I have a lot I can share with the AM community, but since it’s full of blood-thirsty money-hungry dishonesty, I gotta be careful and keep some goodies to myself.

Enough of the B/S – Here I provide you with some tips to keep your CPVLab DB running a little smoother.

First thing you will need is SSH access on your server. Don’t know what that is? Then this is probably too advanced for you. However, if you’re on a managed server, I’m sure your hosting company can have a techie help you out with this one.

After digging around I found some recommendations and these settings seem to have improved performance for me. You’ll want to pay attention and ensure that these settings are ideal for YOUR server, as every server is different, especially given the different RAM allocation. My *new* server that I am currently moving to has 5gb of RAM allocated so my innodb_buffer_pool_size is equal to 2gb (or 2048M).

Tweaking InnoDB Settings

These are just the settings I’ve discovered so far to help speed things up. Feel free to add your findings in the comments.

Firstly, you’ll need to edit the following file on your server: “/etc/my.cnf”

Once logged in via SSH:

  • Type “edit /etc/my.cnf”
  • Add or Change the following settings (Just be aware, these are settings that I USED for my server. Speak with your hosting company if unsure on which settings to use or do some of your own research. Typically, the one you should be most concerned with is innodb_buffer_pool_size
[mysqld]
thread_cache_size=16K
table_cache=128M
local-infile=0
innodb_file_per_table=1
max_connections=100
key_buffer_size=16M
join_buffer_size=1M
query_cache_type=1
query_cache_limit=4M
query_cache_size=128M
max_tmp_tables=1
default-storage-engine=MyISAM
innodb_buffer_pool_size=2048M
innodb_flush_method=O_DIRECT
low_priority_updates=1
concurrent_insert=ALWAYS
tmp_table_size=128M
max_heap_table_size=128M
  • Restart MySQL
  • /etc/rc.d/init.d/mysql restart

 

Automate Defragmentation via Cron & Bash

This next step is going to automate defragmenting your tables which can help speed things up also.

Firstly, you’ll need to create a new “bash” script on your server to be run via Cron later.
Lets name this file “dbdefrag.sh”

Type: “edit dbdfrag.sh”and paste the following code, modifying the user/pass for your DB accordingly.

#!/bin/bash

MYSQL_LOGIN='-u USERNAME  --password=PASSWORD'

for db in $(echo "SHOW DATABASES;" | mysql $MYSQL_LOGIN | grep -v -e "Database"$
do
        TABLES=$(echo "USE $db; SHOW TABLES;" | mysql $MYSQL_LOGIN |  grep -v T$
        echo "Switching to database $db"
        for table in $TABLES
        do
                echo -n " * Optimizing table $table ... "
                echo "USE $db; ALTER TABLE $table ENGINE=INNODB" | mysql $MYSQL$
                echo "done."
        done
done

 

The next step is scheduling with cron.

Steps:

  • crontab -e
  • Go to the end of the file and add the following line (note it runs at 4am every day)
  • 0 4 * * * bash dbdefrag.sh
  • CTRL+X to exit then hit Y to save
  • Alternatively, you can set up a cron job via cPanel

 

Disclaimer

Please consult your server admin before making any of these changes to yours. I take no responsibility if you mess your server up. Perhaps do these changes on an experimental install or server first before making the changes to your live one.


If you’re looking for further Affiliate Marketing Guidance, check out StackThatMoney. Best community of experienced marketers from around the globe, exclusive meetups, follow along’s, tutorials and the knowledge of a thousand sun-gods.

-=-=-=-

Can’t Decide on Tracking Software?

I’ve recently switched over to a new tracking platform called Thrive by the guys over at iPyxel which I love. It’s still in development, but is constantly improving and making strides, and the best part about it can be self-hosted. The offer a 30-day trial and it’s $99 a month thereafter which is well worth the investment.

Those on a smaller budget can still opt to go the CPVLab route, another favorite of mine but a little more outdated. It is, however, more suitable for PPV traffic if that’s your traffic of choice.


Read More

Risk management via better ROI

Managing risk is a wise choice, whether you’re investing in stocks, real estate, affiliate marketing, bodybuilding supplements or fluffy-pink g-strings.

When there’s money involved, there’s generally risk that requires mitigation, in order to minimize the potential setbacks it could cause if shit hits the fan.

The best way to achieve that? Better ROI.

I’m not expert on risk management myself nor am I a qualified financial adviser, though, I do know a thing or two about general logic.

I can link this concept to weight-training just as much as I can to affiliate-marketing (or anything involving arbitrage for that matter.. especially when it involves dumping your hard earned pennies into something, in order to produce more.. pennies).

When you lift weights, you must warm-up before hitting the big-boys toys for some serious muscular-tissue damage in order to minimize the risk of injury.

Without hitting the big weights, you’re unlikely to bulk up and get the results you desire – but if you jump the gun, you’ll most likely injure yourself and put yourself out of the game for quite some time. See the relevance there?

Don’t jump the gun, you’ll hurt yourself.

With affiliate marketing, generally you start with an initial testing budget, test a lot of ideas out, tweak variables one at a time (A/B testing) and attempt to come to an educated conclusion on what works better. We’ve mostly established that – I mean,w ho knows if a red heading will perform better than a green one? Test it and find out!

We rinse and repeat this process until we are happy with the return on investment produced, cha-ching.

One must also be confident that the ROI is stable enough to withstand a larger investment. Ask yourself this question: will it perform the same if you throw 1,000 or 10,000 more clicks at the offer?

The fact is, nobody really knows and it can only become apparent through testing and constant monitoring. Hopefully with a bit of luck your traffic will be consistent enough to convert regularly. Then there’s the issue of scrubbing, one day you send the 1,500 clicks and get 200 leads, the next only 65. Same ads, Same traffic. But that’s a different bag of chips, lets not get into that.

It will always be a question mark that looms over affiliate marketers without the inside info, as to why your lead consistency fluctuates dramatically.

Did the world just suddenly become less desperate and less horny?

Did the advertiser get greedy?

Is the sky falling?

Perhaps all the of the above.

What we do know is that in order to be an effective and successful marketer, you have to monitor your progress often – especially in a volatile environment.

Useful Idea: Split your campaign up into manageable chunks, notably with demographic targeting, where possible.

Real World Example

Let’s use Plenty of Fish self-serve ads as an example.

Would you rather:

  • 1 campaign/group per offer targeting a broad audience, or
  • 20 small, demographically broken down campaigns for that offer?

I’d assume if you were wise, you’d pick the latter. This way you can pick and choose which demographic to keep, in a much more educated and manageable manner.

You can pick apart the demographic groups that convert, and not just click out of curiosity.

You’d be surprised how different 18-24 year old’s respond to your ads as opposed to those in the 25-29 age bracket.

My advice for PoF is to follow a naming structure that makes your sense and your sedentary life easier.

Here’s an example naming structure with our PoF campaigns that I use:

TYPE-COUNTRY-[OFFER]-GENDER-AGE.

Type being an optional component.

If you’re doing 110×80 ads – I’d simply omit it.

COUNTRY-[OFFER]-GENDER-AGE.

If you run IAB ads also, it can can cause confusion and clutter amongst your ads, hence prefixing with the type. Either specify it with a symbol, a letter, or simply “IAB” as the type.

You’ll be able to manage your campaigns better – thank me later.

Now, take this advice, build some winners, kill off the losers, and most of all, manage that risk.

Note: if you are using Mr Green’s uploader, the character limit for titles is about 20-30 characters, so bare that in mind when naming your groups, otherwise you’ll bash your skull as much as I did trying to figure out why my ads wouldn’t upload.

– Andrew


If you’re looking for further Affiliate Marketing Guidance, check out StackThatMoney. Best community of experienced marketers from around the globe, exclusive meetups, follow along’s, tutorials and the knowledge of a thousand sun-gods.

-=-=-=-

Can’t Decide on Tracking Software?

I’ve recently switched over to a new tracking platform called Thrive by the guys over at iPyxel which I love. It’s still in development, but is constantly improving and making strides, and the best part about it can be self-hosted. The offer a 30-day trial and it’s $99 a month thereafter which is well worth the investment.

Those on a smaller budget can still opt to go the CPVLab route, another favorite of mine but a little more outdated. It is, however, more suitable for PPV traffic if that’s your traffic of choice.


Read More