1 / 11
Feb 2010

Hey all

Help would be appreciated either a Yes or No it can or can not be done and if so how..



I have two domain names for the same site, and now I want to promote the less popular as my main one (the name of the site is same as the business) and gradually phaze out the other domain name, which currently provides my income. While I am redoing, and adding to the new domain and site, it is starting to get hits in google, but I want to see if there is any way I can determine which one of the two websites the sales are coming from.



I would just add new products, but I currently have 46 on each and my plan only allows 60 items so I am wondering if there is some extra code or tweak I can add to one sites e-junkie code to distinguish them.



Thanks

  • created

    Feb '10
  • last reply

    Feb '10
  • 10

    replies

  • 1.1k

    views

  • 4

    users

  • 4

    links

You could modify your Add to Cart URLs on each site to add a &custom= parameter indicating which site it came from, which would be passed into the order and shown in your Transaction Log. E.g., this is what your Add to Cart code would look like for a typical product:



On thisdomain.com:

<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=XXXXX&cl=20545&ejc=2&custom=thisdomain" target="ejejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ejadd_to_cart.gif" border="0" alt="Add to Cart"/></a>



On thatdomain.com:

<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=XXXXX&cl=20545&ejc=2&custom=thatdomain" target="ejejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ejadd_to_cart.gif" border="0" alt="Add to Cart"/></a>

cant ejunkie just grab this data by default? for some users having to edit every single add to cart on every site would mean a lot of work...

@Bigfoots no work at all, just a find and replace the &custom tag to the middle of the code.



Mind you since I did it, have had no sales in a day to check to see if it works which is a bit of a worry. Not something I am concerned is an e-junkie issue, just Murphy's law when ever I change the site for better SEO sales drop off for a few days, every single time :frowning:

find and replace code in multiple pages and multiple items IS work no matter how you slice it.

If i had just 2 pages and just 4 products then yeah, it wouldnt be a big deal.. but thats not the case....

what would be "no work at all" would be if e-junkie just grabed the site url from whence the sale came from.

That would be no work....

@Bigfoots, I apologize for assuming that just because I have been using Dreamweaver for 8 or so years that has in all it's versions, had a find/replace document or folder option. (as well as a options for text or source code etc), that other html editors would also have such a basic and useful feature



But, for me, my question was answered by Ejunkieguru. I had a problem, e-junkie has a solution which took 30 secs to automatically go through the site and make the changes.



Maybe you are thinking each product code needs to be replaced? Not so, the find and replace of



cl=20545&ejc=2

to

cl=20545&ejc=2& custom=thatdomain



set up for every page within a folder add this script without changing the product information itself just adding a new bit to be reported in the transaction log.



Mind you if your old school and write your code in notepad, then yeah your going to have an issue and a tonne of work. But if your still writing code like that, wasting time is only one of the issues you would have lol

I'm familiar with find and replace.

I have dreamweaver as well..

i also have quite a few sites, and each site has different categories and with in the categories different products so there is no magic "no work involved" step as you keep wanting to refer to.

end of discussion

my point is there is no reason why I should have to download hundreds of product pages and edit them when e-junkie can just capture it to begin with.

Hell my php-live chat program can capture what you ate for breakfast so I'm pretty sure ejunie could easily just grab the url...

maybe it was easy for you 2 websites and probably 2 product pages.. but thats not the same situation for everyone..

not to mention not everyone knows hot to do find and replace etc..



E-junkie.. is there any good reason why you can just capture this data??

We never built a feature like this into our system because there is a way to add the information in if the merchant wants to collect this data. The option also allows for the merchant to use the custom variable to collect other data,not just the URL of the site.



I can send a suggestion to our development team to include a feature that will automatically grab the URL of the site the purchase button was one. Currently the only way to collect this data is the way mentioned by my co-worker in his posting from the 4th.

that would be great.

I'm guessing they could add that feature relatively easy.

would be one less question to answer on the forums and one more feature to add to the list of e-junkie so everybody benefits.