Most importantly, you need to take action. The most successful affiliate marketers are those who do, rather than those who think about doing. Take what you learn from Affilorama and start working hard. You might not get it right the first time, but the experience is what really counts when you are learning affiliate marketing. You will hone your skills and abilities over time, so don’t sweat the fine points!
LIVESTRONG is a popular health and wellness site. They provide readers with content to help them maintain a healthy lifestyle. They don’t sell products on their site, but sites like these are able to promote products, like yours, on their site and generate an income based on the purchases their audience makes on your site. Choose affiliates whose content closely matches your product, so that site visitors are already primed and interested to take the next step and click through.
Dropshipping does have the primary drawback that there is a lot of existing competition. If you’re trying to sell $10 tablet cases for $20, you can bet there are other people out there trying to do the same thing. Some of them might price their cases at $15, in which case you have to ask yourself; why would a user buy from me rather than from them? What value do I add for $5 that the competition cannot? Often, you have nothing tangible, so you have to provide that value in terms of information and trust.
The marketing automation coordinator helps choose and manage the software that allows the whole marketing team to understand their customers' behavior and measure the growth of their business. Because many of the marketing operations described above might be executed separately from one another, it's important for there to be someone who can group these digital activities into individual campaigns and track each campaign's performance.
Another thing that I didn’t mention is that if someone doesn’t have to sign up to your email list and they click on your affiliate link you will earn a commission if they make a purchase but you will not have access to their name and email information. They will basically be one time buyers for you because you didn’t capture their name and email address first.

In February 2000, Amazon announced that it had been granted a patent[18] on components of an affiliate program. The patent application was submitted in June 1997, which predates most affiliate programs, but not PC Flowers & Gifts.com (October 1994), AutoWeb.com (October 1995), Kbkids.com/BrainPlay.com (January 1996), EPage (April 1996), and several others.[13]


The downside is that Shopify is only appealing for people who have physical or digital products to sell and have a need to set up a Shopify store, including site hosting, payment processing, and all the other services offered by Shopify. This can significantly narrow the appeal for this affiliate program. But if you can distinguish yourself by educating people on how to use Shopify, how it can benefit their business, and/or make them money, you could potentially big money via the affiliate program. Add in the 2 x monthly fee commission rate, and landing just a few sales of their mid-tier and top-tier products can result in significant earnings.
affiliate affiliate marketing affiliate program apple apple dmarc basics of email marketing best email design tips build email list common mistakes in email marketing create email list Create surveys email email design email design tips email list email marketing email marketing campaign email marketing for beginners email marketing in the mobile era email marketing solutions email marketing strategies email marketing strategies for e-commerce web-sites email templates email tips email verification email verify email verify tool inbox affiliate inboxbrush inbox mail inbox partner inboxpartner inboxverify list building marketing marketing tips mobile email marketing mobile optimization for email marketing most important parameters to follow in email marketing newsletter design newsletter design tips newsletters examples tips to increase email flow useinbox what is affiliate marketing

With the boom in subscription boxes, unboxing videos have become quite popular. If your audience spends a lot of time on YouTube, then partner with an influencer who can showcase your product. The benefit of influencer marketing is how personal it is. Think about how powerful your campaign will be when followers feel as though they’re experiencing the unboxing along with the influencer. They’ll likely be receptive to clicking the link the influencer shares in order to learn more about you and your products.


Never send an email without making sure it’s working properly. What looks good in your inbox can look broken or mangled in someone else’s. Use tools that can help you with testing your SPAM score, deliverability and the rendering of your email. There are plenty of free or freemium solutions that provide screenshots of your email in dozens of different email platforms.
As a business model, dropshipping allows anyone to sell products from suppliers on their own website. There is no need to carry any inventory at all. When someone purchases a product from the dropshipper’s website, they place an order with the supplier. The supplier then packages and ships the product to the customer. Dropshipping is a great business model for a first-time ecommerce entrepreneur or people who want to test categories of products on their audience. Ecommerce entrepreneurs have even been known to run their ecommerce stores while studying, or working full-time.

Affiliates work to introduce their visitors to the merchant’s brand. They might write a post about a new product or promotion on the merchant’s site, feature banner ads on their site that drive people to the merchant’s site, or offer visitors a special coupon code. If people come from that affiliate’s site and make a purchase, that affiliate gets paid.

While these models have diminished in mature e-commerce and online advertising markets they are still prevalent in some more nascent industries. China is one example where Affiliate Marketing does not overtly resemble the same model in the West. With many affiliates being paid a flat "Cost Per Day" with some networks offering Cost Per Click or CPM.

“Initially, I don’t always look for the ‘perfect’ affiliate. I look for any partners who have an audience that might react positively to my offer. For example, if I have a financial investing offer, I might feel like I already know all the ‘big’ financial partners and can’t grow my affiliate program. However, that is far from the truth. I will start looking for other affiliates having a product or offer with a similar audience, like high-end watches, real estate or even a health offer. Yes, a health offer. You might be surprised. Get creative,” he encouraged.
I had a chance of looking at how much some CPA marketers are earning. My jaws hit the floor. How can anyone make 32k in a day? It is not some Photoshop screenshot but the CPA company interface allows earning shouts which is drawn live from the system and displayed on a live chat. That’s where I saw those big figures. Remember I said 32k in a day not in a month. Now that is insane. This gives you some idea how: http://x.co/9RnqK
The marketing automation coordinator helps choose and manage the software that allows the whole marketing team to understand their customers' behavior and measure the growth of their business. Because many of the marketing operations described above might be executed separately from one another, it's important for there to be someone who can group these digital activities into individual campaigns and track each campaign's performance.
There is serious competition in the affiliate marketing sphere. You’ll want to make sure you stay on top of any new trends to ensure you remain competitive. Additionally, you’ll likely be able to benefit from at least a few of the new marketing techniques that are constantly being created. Be sure you’re keeping up to date on all these new strategies to guarantee that your conversion rates, and therefore revenue, will be as high as possible.
When beginning your affiliate marketing career, you’ll want to cultivate an audience that has very specific interests. This allows you to tailor your affiliate campaigns to that niche, increasing the likelihood that you’ll convert. By establishing yourself as an expert in one area instead of promoting a large array of products, you’ll be able to market to the people most likely to buy the product.
^ Shashank SHEKHAR (2009-06-29). "Online Marketing System: Affiliate marketing". Feed Money.com. Archived from the original on 2011-05-15. Retrieved 2011-04-20. During November 1994, CDNOW released its BuyWeb program. With this program CDNOW was the first non-adult website to launch the concept of an affiliate or associate program with its idea of click-through purchasing.
As mentioned above, affiliates are incentivised to introduce your brand and direct users to your website. They may do this by writing a blog post about your newest or top-selling products, or your current promotion. Affiliates may feature banner ads on their site that drive users to your store, or offer coupon codes as incentives to users to purchase the product after visiting their site.
Email marketing tools offer a wide selection of ready-to-use templates. They can save lots of your time, and you won’t need to worry about how your email will display across different devices. You can also use a drag-and-drop editor in your email system to design your template. Add blocks like images, social media buttons or text blocks, customize styles and other elements.

An affiliate marketing business is a great business to have as you can become very successful without incurring much cost. There are many advantages of this business model. But the disadvantages are heavily weighed around money you could lose by relying on other businesses. For this reason, even if you continue with affiliate marketing, having a dropshipping element is a good idea. It can help ensure a steady flow of income for your business. Running an online store makes you more money for the following reasons:
Brands are using both types of marketing effectively. Both channels are useful for boosting a brand’s business and market share, so don’t feel as if you have to limit yourself to one or the other. If you aren’t already incorporating both influencers and affiliates into your marketing strategy, you’re missing out on some of the best possible opportunities to grow sales and brand awareness.
The downside is that Shopify is only appealing for people who have physical or digital products to sell and have a need to set up a Shopify store, including site hosting, payment processing, and all the other services offered by Shopify. This can significantly narrow the appeal for this affiliate program. But if you can distinguish yourself by educating people on how to use Shopify, how it can benefit their business, and/or make them money, you could potentially big money via the affiliate program. Add in the 2 x monthly fee commission rate, and landing just a few sales of their mid-tier and top-tier products can result in significant earnings.

It’s free to join the SellHealth affiliate program, though you do have to apply and be accepted before you can start promoting their products.  Once you’re accepted, you’ll have access to a number of tools, graphics, banners and more that you can use to promote SellHealth products.  The sales are actually made at company-owned Websites, which look professional and handle all of the selling. Commissions vary, but the base rate is 30% of all sales and upsells, and SellHealth says you can earn up to $350 per sale.
Aim for quality over quantity. Having a vast network of affiliates will not necessarily help you earn more money. According to some experts, the key to successful affiliate marketing is to find the right affiliates that will drive the most results for your platform. Those affiliates may be big sites, small sites, or a combination of the two, but the most important thing is to build and maintain strong relationships with your chosen affiliates.[40]
When comparing dropshipping vs affiliate marketing, dropshipping tends to be a little less risky in various ways. First, like an affiliate marketing business, dropshipping doesn’t carry inventory nor does it ship goods. This makes both models pretty low risk. However, with dropshipping, the risk is even lower as your funds become available each week. With an affiliate marketing business, there may be thresholds you need to reach before you can cash out your first cheque. For example, if you’re an Amazon affiliate outside of the US, you can only be paid by cheque or gift card. However, to receive the cheque you must have made at least $100. Yet, not everyone succeeds at making $100, when the percentages are really low. With dropshipping, you get paid what you made.
There are a lot of ways to place these commission-earning links on your website, so you don't even have to know how to make banners. One of the most popular ways to add links is to simply include them in your content. Here's an example of a product suggestion within an article, with a link to the relevant product where it's most useful in the content:
Hi Jamie, awesome content that is very helpful esp with the resources, links and the rich discussions. Want to start e-commerce and blog for money…selling others products, want to go full on with this, tired of the daily routine crunch working for others. I live in a developing country (PNG) that has high internet costs (work still in progress with getting rates down…) so will see how I go with your posts. Any advise? Don’t have a website yet, have to build one I guess….
“For example,” he added, “what happens with refunds, or if two different affiliates send the same customer? Who gets paid? All of these things need to be discussed before engaging. We produced a ‘deck,’ or a PowerPoint presentation, that we could send to a potential affiliate, that outlines all these parameters. This way, we can easily say it was communicated, and it lowers the risk of them getting upset.”
“I have made the mistake of trying to recruit affiliates to an offer not early enough in advance for their calendars during the busiest time of the year. Affiliates tend to have a mapped-out schedule of all the offers they want to promote (especially the bigger affiliates), and if I do not give them at least a couple weeks of lead time, they may not have a slot open. This lead time increases around the busiest time of the year: Q4 (October-December),” Verta said.
Affiliate Marketing is where you promote someone else’s product and earn a compensation when you refer sales. So you, basically, find products that appeal to your audience, promote these products (or services) to others, and earn either a percentage or a flat amount on each sale that you generate for the merchants that you promote. You don’t get to dictate the price of the product or the commission earned. For example, if you decide to run a fitness site, you could promote fitness related products – gym gear and supplements. You join “XYZ Supplements” affiliate program. You write a review on your site about the product and include your affiliate links. Someone clicks on the link, gets redirected to the merchant’s website, buys the product, conversions are tracked, products are shipped to the customer, and you get paid! So you don’t have any of the headaches of selling products – your only job is to write a post and market to your audience.
Previously known as Affiliate Window but now officially referred to as “AWIN” after acquiring Zanox a few years ago, this network claims to work with over 13,000 active advertisers and 100,000 publishers (affiliates). Founded in Germany, AWIN’s merchants primarily hail from Europe (especially Great Britain) although the U.S. network is growing rapidly. AWIN is currently active in 11 countries.
While any “regular” job requires you to be at work to make money, affiliate marketing offers you the ability to make money while you sleep. By investing an initial amount of time into a campaign, you will see continuous returns on that time as consumers purchase the product over the following days and weeks. You receive money for your work long after you’ve finished it. Even when you’re not in front of your computer, your marketing skills will be earning you a steady flow of income.
“A year later, I saw her at an event and asked her about it, and apologized if I offended her in some way. She said I didn’t, but that an average mailing for her did $50,000 in commissions… So when I kept hitting her up, I was pretty tone deaf to the fact that I had cost her a significant amount of money that day by mailing an offer that didn’t convert well to her list, and then I kept annoying her with follow up emails.”

Targeting – Digital marketing enables marketers to dial in a targeted audience like never before. Online marketing takes full advantage of the information age using specific consumer analytics (age, location, likes, dislikes, political leanings, religious beliefs – just name a few) that allow marketers to find the prospects most likely to buy from them. 

Upselling is a sales technique where the salesperson encourages a more expensive purchase by a customer by persuading them to get an upgraded version of an item or to purchase add-ons. Remember our food processor example? That food processor could probably be best used with a book of recipes, which also can be purchased at the same company’s website.


Most people think of email as a simply a tool for communication. We use email on a daily basis to keep in touch with loved ones, communicate with coworkers, and interact with companies when we want to learn more about a product or service. Affiliate marketers can use email to earn money through targeted campaigns, but it isn’t as simple as just sending out a few emails a day. Success through email marketing relies upon a few earning secrets, which we’ll discuss in this post.
Hi Jamie! Thank you for the great information. I just learned about affiliate marketing last week. The source however, is an older couple who work for World Wide Dreams Builders (WWDB). So, basically Amway. After researching a bit. I have no interest in WWDB and. (It sounds like years of recruiting people with minimal payout) Though, I am highly intrigued by e-commerce and affiliate marketing. Before your post the company I recognized was Amazon. Can you please tell me if that will be the best 1st step. I am currently an unemployed student Veteran. So plan to fully emerge into this business regime and would greatly appreciate your advice on this!!!
When doing a comparison between dropshipping vs affiliate marketing, the biggest disadvantage of affiliate marketing is you’re paid on commission. You might’ve just spent $100 in ads only to make $50 back in commission fees. The payout for affiliate commissions is generally a lot lower than dropshipping. Even if your commissions are several hundred dollars, odds are the cost of the product is higher. This means finding the right people will cost more as well. Also, you don’t have the opportunity to set the price. For example, if people are interested in the product but feel the cost is too high, you can’t lower it to meet the demand of your audience. In addition, since you can’t set the price of your earnings, you’ll likely make a lot less than if you were the merchant.
Here is something that I didn’t think about before if you are selling informational type products. If you want to make a lot of money very quickly you will need to build a list of names and email addresses. The larger the list the better. That way when someone has a product that you can sell as an affiliate you can just send out an email message to your email list and people will start buying from you that day or in the very near future.
The only reason more people are moving to dropshipping is that with affiliate marketing they only get a fixed commission on the number of products they sell. In comparison, with intelligent advertising platforms, they can precisely target each buyer who wants to buy their products and pay only when they receive an order. Even after taking out the costs of advertisements, hosting, and customer service, they still get a commission that’s higher than what they would have earned with affiliate marketing. Moreover, users can also install plugins such as AliDropship, Dropified, and various others that are associated with dropship affiliate programs including AliExpress and WorldWideBrands.

The average commission rate is $58 per the Shopify website. Shopify’s commissions are paid according to different metrics. For instance, if a referral signs up for the Shopify Plus enterprise plan (the highest tier), the payout is a flat $2,000. Referrals who sign up for the standard plan earn a $598 commission. The payout for a Basic account is $58. Commissions are calculated as follows: you will earn two times the monthly rate but only two months after the user has been a paying customer.
If you’re working to promote a brand, a service business or just about any other type of business, both types of marketing will be useful for you to know about. There are quite a few similarities and areas of overlap between these types of marketing, but there are also distinct differences. Let’s take a look at the most important similarities and differences between influencer marketing and affiliate marketing.
The downside for relying on SEO as the main source of traffic for your affiliate site is that you are only making 10% or so per sale, so you can’t afford to invest in paid traffic most of the time. That’s why affiliate marketers rely so heavily on free traffic from search engines or influencer marketing (in which you would try to be an influencer yourself).
Hi guys! I think between affiliate marketing and online store the real problem is the capital that is involved, if you want to earn more you also need to invest more. What is good about affiliate marketing is that, you can earn even without having to shell out a single cent, all you have to do is to maintain a good site and increase your viewers. The more credible and the more people view your site the more businesses will pay you. I may agree in some point that online store may pay off more only that you also need to invest more. You need a starting capital for your products, good if you really have the business. But for those who do not have the money but have the time affiliate marketing may be more profitable for some.
Understand your demographics. Every affiliate will have their own target demographic. As the affiliate marketer, it's your job to understand your affiliates' demographics, and tailor your advertisements or reviews in such a way that that target demographic will be reached through your platform. Knowing, for example, the target demographic's age, interests, and average income range, will help you tailor your reviews and advertisements to that demographic.[43]
Given that I am still in reading and preparation phase, I am mainly interested to overlap my niche with real life interests so I could have motivation to produce content on regular basis. Two that I am highly interested are PC parts and Fitness. I am aware they are too general subjects with lot of sites doing the same, but my idea is to produce constant review on PC parts, Laptops, Mobile devices, Accessories all in different categories, create lists like top5 or 10 under XX budget etc. Similar approach I would use if I I decide to go with Fitness path and divide content training advice, review of fat loss methods, supplementation, nutrition etc. I am aware that this will be a long journey and that it can pass few months before sales start to kick in and that’s the risk I am ready to take. My questions are:
Hi Jamie! Thank you for the great information. I just learned about affiliate marketing last week. The source however, is an older couple who work for World Wide Dreams Builders (WWDB). So, basically Amway. After researching a bit. I have no interest in WWDB and. (It sounds like years of recruiting people with minimal payout) Though, I am highly intrigued by e-commerce and affiliate marketing. Before your post the company I recognized was Amazon. Can you please tell me if that will be the best 1st step. I am currently an unemployed student Veteran. So plan to fully emerge into this business regime and would greatly appreciate your advice on this!!!
Affiliate marketing gives you access to regular new offers, and you tend to spend more time promoting specific products. This enables you to focus more on a particular item and see your progress much more easily via tracking tools. You can also join an affiliate network and get help, advice and management for your campaigns, and it’s completely free.
Digital marketing is defined by the use of numerous digital tactics and channels to connect with customers where they spend much of their time: online. From the website itself to a business's online branding assets -- digital advertising, email marketing, online brochures, and beyond -- there's a spectrum of tactics that fall under the umbrella of "digital marketing."
“I emailed each partner via a mass broadcast email to let them know to stop sending traffic. I chose that route immediately because it informed everyone quickly, and allowed them time to stop sending their highly-targeted traffic to an offer not making them any money. After the broadcast, I began to personally call, Skype, Facebook, and text all the contacts one at a time. I wanted to ensure them we were doing everything possible to make things right, and thank them for their support,” he said.
Sorry I was not more clear in my questions, we want to market products and re-direct traffic from our website to the seller websites. With that said, we need to know how to get started in forming relationships with sellers whereby they allow us to market their products and whereby they will pay us commissions if their items are purchased as result of our website being visited by their eventual customers. What is the contractual arrangement? What is the typical commission that we would be paid? How do we formalize and structure the contractual arrangement between us and the sellers, etc? We need the specifics on this process.
Pay Per Click Advertising – PPC has been a huge game-changer in the world of advertising. It enables marketers to generate immediate traffic that fuels leads, social shares, and sales for a website. Instead of paying for ad displays, advertisers pay only when a user clicks on their ad. Traffic sources are tracked as well which identifies which ads are achieving the best result in a campaign and allow for fast and simple tweaks to test improvements.

Although there is complete control over the types of products to promote or market on the website, shipping cannot be controlled because product sellers handle that. Sellers ship the ordered products at their own convenience (such as waiting to collect multiple orders from a single location and sending them all in one go). Because of similar reasons, customers are often seen complaining about late receipt of their orders.


Both affiliate marketing and dropshipping require similar skill sets. To be successful in either you’ll need to be able to market your products by creating ads and driving traffic to landing pages where customers will buy the product. This might not sound too difficult, but it can take a while to start seeing any significant number of people actually buying products using your site or links.
Third, successful affiliate marketers measure beyond just money. How will you know that you’ve become a successful affiliate marketer? The number cruncher in you may raise your hand and say, “When I make X dollars per month every month for a number of years.” Hard to argue with that, since making money online is a strong motivator. However, why not measure success by the number of lives you touch in a positive fashion by introducing them to your affiliate products? Chances are that the money will follow…
Hey, thanks for the great post. I’ve been following Pat Flynn and love his “give and it shall be given unto you” attitude..my perception anyway. At 50, with a high school education, I’m trying to learn affiliate marketing from information online. What I’ve gleened so far is to focus on giving the best, most honest information, like your Parents would give you. In exchange for your efforts rewards will come.
Due to new European legislation regarding how websites store information about you, AWIN is updating its privacy policy. You can see the new version of our policy here. If you would like to see the information we capture on this website, please click here for further details. In order to accept cookies on this site please click the 'I ACCEPT' button
When you create sign-up or subscription forms, include options for subscribers to self-select preferences. Even free platforms like MailChimp allow you to provide segmenting options. For instance, you can ask subscribers about particular interests, product preferences, or content interests. Options for affiliate marketers may include: 1) Newsletters, 2) Deals and Discounts, 3) Announcements and 4) New Product Updates. Some subscribers may select to receive content on all of these, whereas others might only have interest in one or two.
Consider joining up with an affiliated marketing company. One easy way to enter the field of affiliate marketing is to join a company that specializes in online marketing. Though you'll ultimately work independently, companies like MoreNiche allow aspiring affiliate marketers to join for free to have a platform for advertising products/services.[5]
What if you used an autoresponder instead? That way you could create two, three, even ten email messages all at once. One blog post per email works well. Then schedule each message in the autoresponder to go out every seven days. Viola. You now have what looks like a weekly newsletter, but is actually an autoresponder. And you now have a lot more free time.
You can’t just wait to be a rich man the next day when you prepared a web site at one night. Thing are not going so far. Affiliate is not a proposition to be a fast rich. You need to work hard. I have seen companies from all over the world with completely different set of skills, but one thing that all of them have in common was that they were dedicated to their web sites.
When deciding between dropshipping vs affiliate marketing consider how much money you can actually make. The commissions in an affiliate marketing business can often be low in comparison to a dropshipping model. When dropshipping, you can buy a product that costs $1 and sell it for $19.99, which allows you to keep a substantial portion of the profit after marketing costs have been subtracted.
Despite its older origins, email marketing is still a viable source of affiliate marketing income. Some affiliates have email lists they can use to promote the seller’s products. Others may leverage email newsletters that include hyperlinks to products, earning a commission after the consumer purchases the product. Another method is for the affiliate to cultivate email lists over time. They use their various campaigns to collect emails en masse, then send out emails regarding the products they are promoting.
This is Simon, thank you for your post, it is very helpful for me. However, we are a lighting company, and we are plan to try the Affiliate Website to increase our sale. But it seem that there are many different Affiliate website to be chose and some of them also need pay some fee to begin, so as we just begin to do this, which website is your recommend ?
“Within our affiliate management system, we have notifications triggered to all affiliate managers when to reach out and schedule the next follow up call with the affiliate. We schedule monthly one on one meetings with our affiliates to take a deeper dive into their business and offer help where we can. This ultimately leads to them promoting our offers a lot more,” he said, and asked that you remember that “their success ultimately equals your success.”
We can’t stress the importance of this enough. Effective PPC campaigns use keywords that are competitive and popular. Remember, you’ll be shelling out money to put on ads, so your keywords have to be high-intent; meaning, the people using those keywords are the ones most likely to follow through on their action. They need to be specific and targeted, while at the same time allow flexibility.
If you want to target a specific group of people instead of your entire audience, then use affiliate marketing. If you’re launching a new product feature or an entirely new product that power users will be receptive to, use affiliate marketing to target specific sites that these power users spend time on. Instead of marketing to everyone, you speak to the people most likely to use your product.
!function(n,t){function r(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function i(e){return void 0===e}if(n){var o={},u=n.TraceKit,s=[].slice,a="?";o.noConflict=function(){return n.TraceKit=u,o},o.wrap=function(e){function n(){try{return e.apply(this,arguments)}catch(e){throw o.report(e),e}}return n},o.report=function(){function e(e){a(),h.push(e)}function t(e){for(var n=h.length-1;n>=0;--n)h[n]===e&&h.splice(n,1)}function i(e,n){var t=null;if(!n||o.collectWindowErrors){for(var i in h)if(r(h,i))try{h[i].apply(null,[e].concat(s.call(arguments,2)))}catch(e){t=e}if(t)throw t}}function u(e,n,t,r,u){var s=null;if(w)o.computeStackTrace.augmentStackTraceWithInitialElement(w,n,t,e),l();else if(u)s=o.computeStackTrace(u),i(s,!0);else{var a={url:n,line:t,column:r};a.func=o.computeStackTrace.guessFunctionName(a.url,a.line),a.context=o.computeStackTrace.gatherContext(a.url,a.line),s={mode:"onerror",message:e,stack:[a]},i(s,!0)}return!!f&&f.apply(this,arguments)}function a(){!0!==d&&(f=n.onerror,n.onerror=u,d=!0)}function l(){var e=w,n=p;p=null,w=null,m=null,i.apply(null,[e,!1].concat(n))}function c(e){if(w){if(m===e)return;l()}var t=o.computeStackTrace(e);throw w=t,m=e,p=s.call(arguments,1),n.setTimeout(function(){m===e&&l()},t.incomplete?2e3:0),e}var f,d,h=[],p=null,m=null,w=null;return c.subscribe=e,c.unsubscribe=t,c}(),o.computeStackTrace=function(){function e(e){if(!o.remoteFetching)return"";try{var t=function(){try{return new n.XMLHttpRequest}catch(e){return new n.ActiveXObject("Microsoft.XMLHTTP")}},r=t();return r.open("GET",e,!1),r.send(""),r.responseText}catch(e){return""}}function t(t){if("string"!=typeof t)return[];if(!r(j,t)){var i="",o="";try{o=n.document.domain}catch(e){}var u=/(.*)\:\/\/([^:\/]+)([:\d]*)\/{0,1}([\s\S]*)/.exec(t);u&&u[2]===o&&(i=e(t)),j[t]=i?i.split("\n"):[]}return j[t]}function u(e,n){var r,o=/function ([^(]*)\(([^)]*)\)/,u=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,s="",l=10,c=t(e);if(!c.length)return a;for(var f=0;f0?u:null}function l(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function c(e){return l(e).replace("<","(?:<|<)").replace(">","(?:>|>)").replace("&","(?:&|&)").replace('"','(?:"|")').replace(/\s+/g,"\\s+")}function f(e,n){for(var r,i,o=0,u=n.length;or&&(i=u.exec(o[r]))?i.index:null}function h(e){if(!i(n&&n.document)){for(var t,r,o,u,s=[n.location.href],a=n.document.getElementsByTagName("script"),d=""+e,h=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/,p=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/,m=0;m]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,o=n.split("\n"),a=[],l=0;l=0&&(g.line=v+x.substring(0,j).split("\n").length)}}}else if(o=d.exec(i[y])){var _=n.location.href.replace(/#.*$/,""),T=new RegExp(c(i[y+1])),E=f(T,[_]);g={url:_,func:"",args:[],line:E?E.line:o[1],column:null}}if(g){g.func||(g.func=u(g.url,g.line));var k=s(g.url,g.line),A=k?k[Math.floor(k.length/2)]:null;k&&A.replace(/^\s*/,"")===i[y+1].replace(/^\s*/,"")?g.context=k:g.context=[i[y+1]],h.push(g)}}return h.length?{mode:"multiline",name:e.name,message:i[0],stack:h}:null}function y(e,n,t,r){var i={url:n,line:t};if(i.url&&i.line){e.incomplete=!1,i.func||(i.func=u(i.url,i.line)),i.context||(i.context=s(i.url,i.line));var o=/ '([^']+)' /.exec(r);if(o&&(i.column=d(o[1],i.url,i.line)),e.stack.length>0&&e.stack[0].url===i.url){if(e.stack[0].line===i.line)return!1;if(!e.stack[0].line&&e.stack[0].func===i.func)return e.stack[0].line=i.line,e.stack[0].context=i.context,!1}return e.stack.unshift(i),e.partial=!0,!0}return e.incomplete=!0,!1}function g(e,n){for(var t,r,i,s=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,l=[],c={},f=!1,p=g.caller;p&&!f;p=p.caller)if(p!==v&&p!==o.report){if(r={url:null,func:a,args:[],line:null,column:null},p.name?r.func=p.name:(t=s.exec(p.toString()))&&(r.func=t[1]),"undefined"==typeof r.func)try{r.func=t.input.substring(0,t.input.indexOf("{"))}catch(e){}if(i=h(p)){r.url=i.url,r.line=i.line,r.func===a&&(r.func=u(r.url,r.line));var m=/ '([^']+)' /.exec(e.message||e.description);m&&(r.column=d(m[1],i.url,i.line))}c[""+p]?f=!0:c[""+p]=!0,l.push(r)}n&&l.splice(0,n);var w={mode:"callers",name:e.name,message:e.message,stack:l};return y(w,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),w}function v(e,n){var t=null;n=null==n?0:+n;try{if(t=m(e))return t}catch(e){if(x)throw e}try{if(t=p(e))return t}catch(e){if(x)throw e}try{if(t=w(e))return t}catch(e){if(x)throw e}try{if(t=g(e,n+1))return t}catch(e){if(x)throw e}return{mode:"failed"}}function b(e){e=1+(null==e?0:+e);try{throw new Error}catch(n){return v(n,e+1)}}var x=!1,j={};return v.augmentStackTraceWithInitialElement=y,v.guessFunctionName=u,v.gatherContext=s,v.ofCaller=b,v.getSource=t,v}(),o.extendToAsynchronousCallbacks=function(){var e=function(e){var t=n[e];n[e]=function(){var e=s.call(arguments),n=e[0];return"function"==typeof n&&(e[0]=o.wrap(n)),t.apply?t.apply(this,e):t(e[0],e[1])}};e("setTimeout"),e("setInterval")},o.remoteFetching||(o.remoteFetching=!0),o.collectWindowErrors||(o.collectWindowErrors=!0),(!o.linesOfContext||o.linesOfContext<1)&&(o.linesOfContext=11),void 0!==e&&e.exports&&n.module!==e?e.exports=o:"function"==typeof define&&define.amd?define("TraceKit",[],o):n.TraceKit=o}}("undefined"!=typeof window?window:global)},"./webpack-loaders/expose-loader/index.js?require!./shared/require-global.js":function(e,n,t){(function(n){e.exports=n.require=t("./shared/require-global.js")}).call(n,t("../../../lib/node_modules/webpack/buildin/global.js"))}});
×