You might be using an unsupported or outdated browser. To get the best possible experience please use the latest version of Chrome, Firefox, Safari, or Microsoft Edge to view this website.
FEATURED PARTNER OFFER
Best Overall
Squarespace
4.9
Our ratings take into account a product's cost, features, ease of use, customer service and other category-specific attributes. All ratings are determined solely by our editorial team.
E-Commerce Starting Price
$23
per month, billed annually
Drag-and-Drop Interface
Yes
Standout Features
Free domain and SSL certificate, no transaction fees, award-winning templates
Free domain and SSL certificate, no transaction fees, award-winning templates
Why We Picked It
Squarespace is our number one pick because of its attractive templates—many of which are free. While it doesn’t offer a free plan, its Business package starts at just $23 per month (if paid annually). It comes with the ability to sell an unlimited number of products, customization using CSS and JavaScript and a professional email address from Google. It does have a lower-cost plan that starts at $14 per month (paid annually), but that doesn’t include e-commerce features.
For $27 per month (paid annually), you can get the Basic Commerce plan that enables you to have a point-of-sale (POS). This plan is ideal for anyone with a brick-and-mortar store or for those who sell at markets and fairs. You’ll also get e-commerce analytics and the ability to tag your products in Instagram posts. The Advanced Commerce plan costs $49 per month (if paid annually) and lets you sell subscriptions and send automated emails when a customer abandons their cart without completing a purchase.
It’s worth noting that unless you have either one of the Commerce plans, there is a 3% transaction fee on sales. These fees are in addition to the standard credit card fees per sale charged on each plan.
Who should use it:
Sellers who are just getting started or whose primary business is in information and just happen to sell products on the side.
Affordable and robust e-commerce plans start at $23 per month
Beginner-friendly, no web design experience required
Free domain name and SSL certificate
No transaction fees
Unlimited bandwidth and storage
Top-notch templates are all free
Its Basic Commerce plan offers a POS
No free plan
No multichannel selling
Abandoned cart recovery does not come standard
FEATURED PARTNER OFFER
Best for Omnichannel Selling
Square Online
4.8
Our ratings take into account a product's cost, features, ease of use, customer service and other category-specific attributes. All ratings are determined solely by our editorial team.
E-Commerce Starting Price
Free; $29 per month (billed annually)
Drag-and-Drop Interface
Yes
Standout Features
Free site, sell in store, sell on social, multiple delivery options (e.g., pickup, delivery, shipping)
Free site, sell in store, sell on social, multiple delivery options (e.g., pickup, delivery, shipping)
Why We Picked It
Square is widely used by many different industries, whether a restaurant or a brick-and-mortar boutique, thanks to its chip reader and point-of-sale (POS) solutions. It’s another one of our top picks because it offers a free plan, as well as multichannel selling included with each plan option. This means you can sell across your e-commerce site, Facebook and Instagram. Inventory management helps you keep track of your stock, no matter where a sale occurs.
The downside of its free plan is that you’ll have to endure Square ads. Paid plans start at $29 per month (billed annually) and include a free domain name for a year, no ads and sellers can upload custom fonts. Its most expensive plan costs $79 per month (billed annually) and gives discounted transaction fees and shipping rates.
All plans have 2.9% plus 30 cents credit card transaction fees, except for the Premium plan, which has fees of 2.6% plus 30 cents.
Merchants who also need a POS for in-person sales.
Pros & Cons
Offers a free plan
All plans have multichannel selling
Sync your Square POS on each plan
With paid plans, customers can order using a QR code
Discounted processing fee on its highest-tiered plan
No custom domains with its Free plan
Must have a paid plan for abandoned cart features
FEATURED PARTNER OFFER
Best for Existing Sites
Ecwid
4.6
Our ratings take into account a product's cost, features, ease of use, customer service and other category-specific attributes. All ratings are determined solely by our editorial team.
E-Commerce Starting Price
Free; $14.08 per month (billed annually)
Drag-and-Drop Interface
Yes
Standout Features
Turn an existing site into an online store, no transaction fees, multichannel selling
Turn an existing site into an online store, no transaction fees, multichannel selling
Why We Picked It
Ecwid is a top-choice e-commerce platform because it has no transaction fees (aside from standard credit card processing fees), and it offers a free plan. What might sound like an unusual name for a company is just a portmanteau—it stands for e-commerce widget. It’s named this because it’s meant for existing websites (such as a WordPress blog). Using HTML, you add Ecwid’s code to your site, and you have a fully functional e-commerce store to showcase your products, all without having to create a new site.
Ecwid’s Venture plan is $14.08 per month and allows multichannel selling and POS. Its Business plan allows for product variations, staff accounts and abandoned cart emails for $29.08 per month. If you sign up for an annual Unlimited plan at $82,50 per month, you can even get your own branded iOS or Android shopping app.
Who should use it: Sellers who already have a blog or website.
Inventory management available on all but the Free plan
Allows multichannel selling on paid plans
Has POS functionality with its Unlimited plan
Free plan is limited to ten products
Cannot edit or place custom orders with the Free or Pro plan
Designs are limited
FEATURED PARTNER OFFER
Best Free E-Commerce Platform
Shift4Shop
4.6
Our ratings take into account a product's cost, features, ease of use, customer service and other category-specific attributes. All ratings are determined solely by our editorial team.
E-Commerce Starting Price
Free; $29 per month
Drag-and-Drop Interface
Yes
Standout Features
Unlimited products, fraud protection, digital and physical products
Unlimited products, fraud protection, digital and physical products
Why We Picked It
If you’re U.S.-based, your Shift4Shop plan is entirely free, provided you use its credit card processor. You’ll pay credit card processing fees of 2.9% plus $0.30 per order, which is standard across the industry. Features are robust; enjoy unlimited staff accounts, as many products as you need, variations and digital downloads.
Should you want to use your own payment processor, you must sign up for a paid plan. These start at $29 per month and go up to $229 per month—the more expensive the plan, the more staff accounts you have.
Its paid plans have a sales limit of $100,000 per year
Limited selection of apps available
Customization options are limited
Not available outside of the U.S.
FEATURED PARTNER OFFER
BEST FOR DROPSHIPPING
Shopify
4.5
Our ratings take into account a product's cost, features, ease of use, customer service and other category-specific attributes. All ratings are determined solely by our editorial team.
E-Commerce Starting Price
$29
per month
Drag-and-drop interface
Yes
Standout Features
Dropshipping integrations, omnichannel selling, built-in selling features
Dropshipping integrations, omnichannel selling, built-in selling features
Why We Picked It
Shopify is one of the best e-commerce platforms for its advanced feature set designed for selling online. It stands out for its wide range of dropshipping integrations that makes selling online without an inventory easy. It has a comprehensive onboarding process to help you make enough to cover your plan cost by the time the three-day trial ends.
Generally, most sellers find the $29 per month plan more than sufficient to handle their store’s needs. It includes up to two staff accounts, shipping discounts, POS access (via Shopify POS Lite, which works fine for small events) and abandoned cart recovery.
There are three other plans, priced at $5, $79 and $299 per month. The more expensive the plan, the lower your transaction fees and credit card processing fees. Additionally, these plans have an even larger discount on shipping. The $5 per month Starter plan lets you sell through social media and messaging apps without your own dedicated website, and does not include an online store.
Shopify is best for omnichannel sellers, as well as sellers who want a user-friendly way of building a dropshipping business thanks to its numerous dropshipping integrations.
Pros & Cons
Free 14-day trial
The most dropshipping integrations
Omnichannel selling
Offers POS functionality
Customers can pay in four methods with Klarna,
Afterpay, Sezzle or Shopify Payments
No free plan
Sellers must purchase a custom domain name or import one
Limited selection of free themes
FEATURED PARTNER OFFER
Best Drag-and-Drop Editor
Wix
4.3
Our ratings take into account a product's cost, features, ease of use, customer service and other category-specific attributes. All ratings are determined solely by our editorial team.
Wix is a leading all-in-one website builder that offers a highly customizable drag-and-drop site editor. It’s not only very intuitive and easy to use with tons of high-quality online store templates to choose from for free, but it also offers feature-rich plans that help make selling online easier. For example, plans come with the ability to sell unlimited products, abandoned cart recovery and recurring payments.
The downside of Wix is that storage is limited to 50 GB, and the price for unlimited storage jumps up to $59 per month. This makes it expensive for online stores with a large inventory and content-heavy sites, such as those that use many product photos and a blog for content marketing.
Who should use it:
Wix is the best e-commerce platform for businesses that want a very easy-to-use site builder that comes with everything you need to build and manage an online store.
All-in-one pricing includes hosting, a domain and SSL certificate
All templates are free
Sell unlimited products
Accept recurring payments
Entry-level e-commerce plan has a storage limit of 50 GB
Limited dropshipping integrations
FEATURED PARTNER OFFER
Best Value
Weebly
4.2
Our ratings take into account a product's cost, features, ease of use, customer service and other category-specific attributes. All ratings are determined solely by our editorial team.
E-Commerce Starting Price
$10
per month with annual billing
Drag-and-Drop Interface
Yes
Standout Features
Free domain name and SSL certificate, beginner-friendly, unlimited storage
Free domain name and SSL certificate, beginner-friendly, unlimited storage
Why We Picked It
Weebly is a top-rated website builder that is known for its simplicity and ease of use. It’s owned by the same company as Square, however, the two e-commerce platforms offer different product offerings. As with Square, all of its website plans are designed to meet the needs of online retailers on a budget.
In terms of pricing, it offers one of the best values on the market. It offers a free forever plan with unlimited products, which buys users plenty of time to build an online store without an upfront investment. However, this plan does not allow you to connect a domain name, so it’s not suitable for business use. Weebly’s Professional plan comes in at a fraction of the cost of its leading competitors, at just $10 per month, and includes everything from a free domain and SSL to inventory management, shipping labels, calculators and an automatic tax calculator.
Who should use it:
Weebly is the best e-commerce platform for small businesses that are just getting started with a website and want an affordable and ultra-easy way of building an online store.
Our ratings take into account a product's cost, features, ease of use, customer service and other category-specific attributes. All ratings are determined solely by our editorial team.
E-Commerce Starting Price
$29.95 per month
(billed monthly or annually)
Drag-and-Drop Interface
Yes
Standout Features
No transaction fees, abandoned cart recovery, omnichannel selling
No transaction fees, abandoned cart recovery, omnichannel selling
Why We Picked It
BigCommerce is built for selling online, so its plans come packed with the features retailers need to foster leads and land sales. Plans start at $29.95 per month and include unlimited storage, bandwidth and products. It offers flexible selling with multiple currencies for international sales, as well as many ways for customers to pay, such as Apple Pay, Google Pay and Amazon Pay.
Similar to Squarespace and Shopify, building an online store with BigCommerce is considered fairly easy and involves only a small learning curve. Unlike Squarespace, plans do not include a domain name and not all themes are free.
Another difference is that BigCommerce plans have a limit on the amount of sales you make per year, so its entry-level plan has a cap of $50,000 in annual sales. If you earn more than that, you’ll need to choose a higher plan, such as the Plus plan for $79.95 per month for up to $180,000 in annual sales. This can make BigCommerce less affordable to grow with, though its built-in sales and marketing tools can help you drive more sales—making it a good value for many.
Who should use it:
BigCommerce is best for online retailers that are looking to utilize built-in sales and marketing tools to more effectively foster leads and increase sales.
Our ratings take into account a product's cost, features, ease of use, customer service and other category-specific attributes. All ratings are determined solely by our editorial team.
E-Commerce Starting Price
Free, plus extensions
Drag-and-Drop Interface
Yes
Standout Features
Transform a WordPress site into an online store, online bookings, sell subscriptions
E-Commerce Starting Price
Free, plus extensions
Drag-and-Drop Interface
Yes
Standout Features
Transform a WordPress site into an online store, online bookings, sell subscriptions
Why We Picked It
WooCommerce is a plugin that enables you to transform a WordPress website into an online store. Its basic version is available for free, but it is highly customizable with its large array of extensions. For example, with WooCommerce extensions, you can accept online bookings, sell subscriptions and accept recurring payments. You can choose from a large selection of shipping companies from FedEx to Royal Mail, create a coupon referral program, accept pre-orders, sell online courses and more. Extensions vary in price, but range from $0 to around $249 each.
Keep in mind that because WooCommerce is a WordPress plugin, you will need to invest some time to learn WordPress as it’s not the most user-friendly content management system (CMS). However, it is one of the most customizable and therefore versatile CMS on the market. It will also require you to purchase a domain name, an SSL certificate and web hosting separately and many businesses opt for a premium theme in order to build a great online store with fewer design customizations.
Who should use it:
WooCommerce is the best e-commerce solution for those who are looking to build and manage a highly customizable and versatile online store.
Pros & Cons
Free to use
Sell products and services, accept bookings and recurring payments
Accept deposits
Sell pre-orders
Many payment gateways available
Tons of extensions available
Must buy web hosting, a domain and SSL certificate separately
WordPress involves a steep learning curve
FEATURED PARTNER OFFER
Best for Creatives
Big Cartel
4.0
Our ratings take into account a product's cost, features, ease of use, customer service and other category-specific attributes. All ratings are determined solely by our editorial team.
E-Commerce Starting Price
Free for up to five products; $9.99 per month for up to 50 products
Drag-and-Drop Interface
Yes
Standout Features
Sell online and in person, shipment tracking, automated sales tax
E-Commerce Starting Price
Free for up to five products; $9.99 per month for up to 50 products
Drag-and-Drop Interface
Yes
Standout Features
Sell online and in person, shipment tracking, automated sales tax
Why We Picked It
Big Cartel is one of the most affordable platforms for building an online store. So affordable, it offers free plans that very uniquely allow you to connect your own domain name and sell up to five products. It’s geared towards online sellers in the creative industries, but any online seller can use it to easily and affordably build an online store to sell products.
With Big Cartel, you can sell products online via your site, in person or on Facebook. It offers the key features online retailers need, such as order management and inventory tracking. However, while it’s easy to use, it’s not overly customizable. It also is not geared towards those selling services or subscriptions online.
Who should use it:
Big Cartel is a great option for small businesses that are looking to easily and affordably sell physical items online without a big investment of time or money.
Pros & Cons
Free plan allows you to connect your own domain
Very low-cost paid plans starting at $9.99 per month for up to 50 products
Money-back guarantee, 24/7 support and inventory management
Why We Picked It
What makes Zyro stand out is its money-back guarantee. If you aren’t satisfied with the platform within 30 days, you can get a full refund. It also offers 24/7 customer support, which is an ideal feature for any e-commerce platform.
If you’re selling, there’s only one plan you can use, and that’s $3.59 per month (70 percent off during its current promotion). You’ll get free email for your first three months, as well as a free domain name for the first year. Unlimited bandwidth and storage come standard, too.
For a GoDaddy e-commerce plan, you’ll pay $16.99 per month (billed annually) for your first year, then it’ll renew at $24.99 per month (billed annually) thereafter. With this plan, connect an unlimited number of social media platforms and send up to 25,000 emails per month.
List products and take payments via PayPal, credit card, Apple Pay or Google Pay. You can also create banner displays or set promotional pricing. While GoDaddy does offer a free plan, you need an e-commerce plan to list any products.
GoDaddy is best for small businesses and first-time sellers who want an easy-to-use platform with email included.
Pros & Cons
Send up to 25,000 emails per month
Accept Apple Pay, Google Pay, credit cards and PayPal payments
Connect an unlimited number of social media platforms
Not as robust for the price compared to its competition
Must pay annually for free features, and those features renew at cost
FEATURED PARTNER OFFER
Adobe Commerce (formerly Magento)
E-Commerce Starting Price
Must contact for a quote
Drag-and-Drop Interface
Yes
Standout Features
Artificial intelligence, Adobe integration
E-Commerce Starting Price
Must contact for a quote
Drag-and-Drop Interface
Yes
Standout Features
Artificial intelligence, Adobe integration
Why We Picked It
Magento is now Adobe Commerce, which is a workhorse of a platform. It has a drag-and-drop page builder so you don’t need a developer, and it’ll integrate with all the other Adobe products, making it ideal for advanced personalization. These other products include Experience Manager, Analytics and Real-Time CDP.
With Adobe Sensei, its AI, shoppers get personalized recommendations to help create an even better experience. It offers two levels of plans, though you’ll need to schedule a demo for pricing.
Bluehost uses WooCommerce for its e-commerce site hosting through WordPress. Choose from one of two plans, depending on whether you want to sell on marketplaces such as Etsy, Amazon or eBay. When paying annually, plans start at $9.95 per month (60 percent off during its current promotion), although you can usually save your first year and it’ll renew at its standard rate afterwards.
Its Online Store Marketplace plan allows for marketplace selling and starts at $12.95 per month (67 percent off during its current promotion)). Both plans allow for bookings, appointments, analytics, gift cards, daily backups, unlimited products and wishlists. Its highest-tiered plan allows for multichannel inventory and doubles the SSD storage.
Bluehost is good for small businesses that want to use WordPress and WooCommerce to host their online stores.
Pros & Cons
Unlimited products
Can sell on marketplaces such as Amazon, eBay and Etsy
Customers can add products to wishlists, which is a rare feature
Storage limits
It uses WordPress, so the learning curve is higher than other platforms
What Is an E-Commerce Platform?
An e-commerce platform is a software solution that helps businesses build and run their online stores. This can include everything from hosting to payment processing to website design and beyond. In other words, it’s everything you need to run your store in one place. Examples of e-commerce platforms include Shopify, WooCommerce, Wix and Squarespace.
The best e-commerce platforms will offer a wide variety of features and integrations to choose from, making it easy to build the exact store you need. They will also be easy to use, so you can get your store up and running quickly and without any headaches.
How To Choose the Best E-Commerce Platform
With so many e-commerce platform choices, it’s vital to pay attention to which features matter most to your business. After all, what works for one seller may not work for all sellers. For example, you may only sell seven different things, which means you don’t need software that supports a large inventory.
Or, perhaps you have a brick-and-mortar store but want to branch online—you need a platform with POS capabilities, so inventory automatically syncs no matter where the purchase is made. Aside from necessary features, you should also consider your budget, how easy it is to use, whether you need multichannel selling and if the platform includes an SSL certificate. This certificate is necessary and lets customers know it’s safe to input credit card details when placing an order.
Essential E-Commerce Features
No matter what type of e-commerce platform you choose, there are certain features that all businesses need in order to succeed online. These include:
Payment processing. The ability to accept payments online is obviously essential for any e-commerce business. All platforms will offer some sort of payment processing, but make sure to check what types of payment they accept. You may need your own payment processor or merchant account.
Shipping. Shipping is another vital aspect of e-commerce. Make sure the platform you choose offers shipping integrations that fit your business. For example, if you sell large items that require freight shipping, you’ll need a platform that can integrate with freight carriers.
Inventory management. Keeping track of your inventory is important to ensure you never oversell or run out of stock. Most e-commerce platforms will offer some sort of inventory management, but the level of detail and features will vary from platform to platform.
Customer management. A good e-commerce platform will also offer some sort of customer management. This can include things such as customer accounts, wishlists, order history and loyalty. This is important to provide a good customer experience and keep track of your customers’ orders.
Analytics. Analytics are vital to understanding your business and seeing where you can improve. Make sure the platform you choose offers detailed analytics so you can track things such as conversion rate, average order value, customer lifetime value and more.
Marketing. Marketing is a great way to drive traffic and sales to your store. Make sure the platform you choose offers marketing features such as coupons, abandoned cart emails and social media integrations.
Product management. Managing your products is important to ensure accuracy and keep things organized. Make sure the platform you choose offers features such as product variants, inventory management, product reviews and more.
Mobile optimization. Mobile optimization is important to ensure your store looks good and functions properly on mobile devices. Ensure the platform you choose is responsive and mobile-friendly.
Security. Security is important to protect your customers’ data and ensure your store is safe from fraud. Make sure the platform you choose offers features such as SSL certificates, password protection and PCI compliance.
Types of E-Commerce Platforms: Self-Hosted vs. Cloud-Based
E-commerce platforms fall into two different categories: cloud-based and self-hosted. When self-hosting your e-commerce site, you’re responsible for maintaining your own server. This can be a hassle, but it also gives you more control over things such as security, uptime and scalability.
Cloud-based e-commerce platforms, on the other hand, are hosted by the platform provider. This means you don’t have to worry about things such as server maintenance, but you also have less control over your site.
Self-hosted e-commerce platforms
PROS
CONS
You have more control over your site.
You're responsible for maintaining your own server.
You can scale your site more easily.
You have to pay for hosting and a domain name.
You can choose your own hosting provider.
You need to be more tech-savvy.
Cloud-based e-commerce platforms
PROS
CONS
You don't have to worry about server maintenance.
You have less control over your site.
You get more features and support from the platform provider.
You can't scale your site as easily.
You don't need to be as tech-savvy.
You have to pay for the platform and for a domain name.
Limitations and Challenges
E-commerce platforms come with a few limitations and challenges. Here are some things to keep in mind:
Cost: E-commerce platforms can be expensive, especially if you need a lot of features. Research the features you need and compare the cost of the platform to ensure it is a good fit for your business. Some platforms advertise free plans, but these usually have limited features, or they have higher processing fees.
Complexity: E-commerce platforms can be complex to set up and use. Choose a platform that is user-friendly and easy to navigate. Look for things such as 24/7 customer support, clear documentation and a user-friendly interface. You don’t want a platform that is so complex you can’t use it, or one with a support team only available 9-to-5.
Limited customization: Some e-commerce platforms are very limited in terms of customization. If you need a lot of customization, make sure the platform you choose can accommodate your needs. Otherwise, you’ll end up spending a lot of money on workarounds and customizations that could have been avoided with a more flexible platform.
Lack of control: The level of control you have over your website varies between hosted and self-hosted platforms—it all depends on what you need. If having full autonomy is key for you, then make sure the platform choice reflects that before committing to anything.
Additional Considerations
Besides the features and limitations of e-commerce platforms, there are a few other considerations to keep in mind when choosing a platform:
Size of store: The size of your store will dictate the type of platform you need. If you’re just starting out, a simple platform with basic features will suffice. However, if you have a large or complex store, you’ll need a platform with more powerful features to accommodate your needs.
Inventory turnover: The frequency of your inventory turnover will also affect the kind of platform you need. If you have a high turnover, you’ll need a platform that can handle a lot of traffic and transactions.
Payment methods: Make sure the platform you choose can accommodate the payment methods you want to use. Some platforms only work with certain payment providers, so it’s important to check this before committing to a platform.
Shipping methods: As with payment methods, the shipping methods you want to use should also be compatible with the platform you choose. Otherwise, you’ll need to use a workaround or find a different platform. For example, dropshipping only works with certain platforms.
Localization: If you want to sell to customers in multiple countries, you’ll need a platform that can accommodate different languages and currencies. Make sure the platform you choose can support your localization needs.
Omnichannel capabilities: If you want to sell through multiple channels (e.g., in-person, online, mobile, social), make sure the platform you choose can support your omnichannel strategy. Not all platforms offer this capability, so it’s important to check before you commit.
Scalability: The platform you choose for your business should be one that can grow with you. Ensure that it will be able to accommodate any future needs you may have; otherwise, you’ll only end up having to switch platforms later on. Doing so would cost both money and time.
Integrations: The platform you choose should be able to integrate with the other software you use, such as your accounting and CRM software. Otherwise, you’ll need to use workarounds or find a different platform.
Design and customization: The design and customization options offered by a platform can vary greatly. If you need a lot of control over the look and feel of your website, make sure the platform you choose can accommodate your needs. More flexible platforms may require higher upfront costs, but they will save you money in the long run by avoiding workarounds.
The cost of an e-commerce platform can vary greatly depending on the features and functionality you need. Simple platforms with basic features may be as low as $10 per month, while more complex platforms with advanced features can cost $500 per month or more. If you’re an enterprise-level business, you’re probably going to spend thousands per month.
These factors can influence the price of your e-commerce platform:
Number of products: If you have a large inventory, you’ll need a platform that can accommodate it. This will usually cost more than a platform for a smaller inventory.
Size of store: A platform with more powerful features is necessary for stores that are either large or complex. This will usually cost more than a platform for a smaller store.
Payment methods: If you want to use multiple payment methods, you’ll need a platform that can support them all. This may cost more than a platform that only supports one payment method.
Payment processing: If you want to use a platform that processes payments for you, you’ll need to pay a per-transaction fee. This will usually be a percentage of the total transaction amount, plus a fixed fee.
Search engine optimization (SEO): You’ll usually need to pay a monthly fee if you want to use a platform that optimizes your store for search engines. Some include SEO features in higher-tiered plans, while others make it standard but usually charge a higher base price.
Web design: A premium platform will usually offer a custom web design service. This can cost hundreds or even thousands of dollars, depending on the size and complexity of your store.
Migration: If you’re switching from one e-commerce platform to another, some platforms charge based on the complexity of the move. You’ll usually find these fees when you’re moving an enterprise-level store, though many small business platforms charge a nominal fee to move it for you, if they offer the service at all.
Methodology
To determine the best e-commerce platforms, we considered competitors across the industry and compiled a list of 17 contenders to analyze in-depth. We then compared 13 criteria regarding pricing, features and ease of use to determine the top 10. When narrowing down these choices, we also considered whether platforms have inventory management and multichannel selling capabilities.
Here are the key metrics used to analyze the top e-commerce platforms.
Pricing
Running your e-commerce store shouldn’t cost you more than what you make, so we excluded platforms with exorbitant fees or prohibitive monthly pricing. Similarly, we made sure to pick platforms with great value. Pricing accounts for 20% of our overall score.
Features and Functionality
Standard features help sellers get their stores up and running quickly, while some platforms provide additional options such as POS and advanced reporting. We took a close look at inventory management as well. When a customer places an order, your inventory should drop proportionately without you needing to adjust anything. And, when you add inventory, you should be able to do it all from one screen.
We weighed features and functionality at 40% of the total score.
First-Hand Expertise
It takes first-hand experience to determine the best e-commerce platforms, as factors such as ease of use, customization capabilities and the quality of online selling tools often do not become evident until using the platform. Along with our own first-hand experience, we factored in popularity, stand-out features, value for the money and ease of use to account for 40% of the overall score.
2023 E-Commerce Trends
It’s no secret e-commerce has made (or broken) many businesses in recent years, with more and more consumers looking to online websites and storefronts to fulfill shopping needs. The digital world is now flooded with options in nearly every retail market, so staying abreast of e-commerce trends is crucial for any business hoping to excel in any industry.
We’ve compiled some notable e-commerce trends in 2023 to help you and your business leverage your online presence for profit.
Increased Reliance on Online and Mobile
In a study conducted by eMarketer, worldwide retail e-commerce sales reached about $2.3 trillion in 2017, reflecting a 24.8% increase from the previous year. Mobile sales made up $1.4 trillion of this total, equalling 58.9% of these digital sales, an increase of 18.7% from 2015. As consumers are relying more heavily on the digital world in the wake of the COVID-19 pandemic, we expect these figures to continue increasing each year.
The convenient, comfortable and contactless nature of online shopping—whether on a desktop, tablet or mobile device—is here to stay. Online shopping is now easier, friendlier and more accessible than ever. As technologies and algorithms continue to evolve, we expect to see continued growth of most businesses via e-commerce. If your business isn’t yet online or your online presence leaves something to be desired, optimizing your business to meet the demands of today’s shoppers on multiple platforms is key to staying on top of a rapidly evolving market.
Younger Generations
The Millennial Shopping Habits: Trend Report found 80% of consumers aged 25 to 40 report shopping primarily online. Optimizing online sites to the priorities and interests of younger shoppers can help boost sales potential and conversion rates. One easy way to test your site’s appeal is to conduct research around which demographics your site’s design and utility appeal to. Where does your marketing reach? Can you tweak your site design, user experience or take a new path when it comes to social media marketing?
Social Media
Product marketing and shoppable ads have seamlessly integrated into nearly all social media platforms, including Facebook, Twitter, TikTok and Instagram. Around 68% of users report making purchases through a social media platform and almost all intend to make such a purchase within the next year. Building a social media presence for your business and effectively marketing your products on these sites will help you reach these consumers and increase your potential sales. If you’re already on social media, is what you’re doing working? If not, it might be time to try something else.
Environmental Concerns, Sustainability and Business Values
People around the globe have become more environmentally conscious than ever before. An increased willingness to support companies prioritizing sustainable practices means a consumer base ready to endorse and uphold positive business values. Carbon neutrality, fair trade, sustainable and local sourcing, positive company culture and other pro-environment, pro-social responsibility movements have all gained steam. Companies practicing thoughtful environmental stewardship are seeing increased interest and business when compared to their competition.
A study performed by First Insight found consumers of all ages are expecting companies to uphold more sustainable practices. Transitioning your company to a greener business model and aligning the values of the company with today’s consumers will increase sales potential and help you form a loyal customer base. One way to show you’re holding your company accountable is to apply for B-Corp status and pursue other certifications relevant to your industry such as organic certification, free trade certification and more.
Visual Commerce and Video
As the world of e-commerce evolves, the importance of providing engaging product representation only grows. Static photos of products aren’t enough anymore. Before committing to a purchase, consumers increasingly seem to want to explore a product in-depth. Providing videos, reviews and interactive content about a product can make it more marketable in the online world.
Frequently Asked Questions (FAQs)
What is the best e-commerce platform?
The best e-commerce platform is the one that’s best for your business, which may not be the same as what’s best for other businesses. To find the best platform for your business, consider your budget, the size of your inventory and whether you need features such as POS or multichannel selling. Our top-rated e-commerce platforms include Squarespace, Square and Ecwid.
Which e-commerce platform is best for dropshipping?
In 2017, Shopify acquired Oberlo, which is one of the most popular dropshipping apps. Together, they work seamlessly to import products to your store for customers to purchase.
What is the best page builder plugin for WordPress?
There are a number of great page builder plugins available on WordPress that can transform the generic page and post editor into a drag-and-drop editor. The best solutions that are user-friendly, affordable and top-rated include Elementor, Beaver Builder and WPBakery.
What is the best B2B e-commerce platform?
All of the services in this guide have some sort of functionality that lends itself well to business-to-business (B2B) selling. However, larger companies may want to look into enterprise-level platforms if they sell to other businesses in large monthly volumes.
How do I build an e-commerce website?
There are a few different ways you can build an e-commerce website. You can use an e-commerce platform such as Shopify or BigCommerce, which provide everything you need to get started. Alternatively, you can use WordPress with a WooCommerce plugin or Ecwid plugin. Finally, you can use a DIY website builder such as Squarespace.
What is a headless e-commerce platform?
A headless e-commerce platform is one that decouples the front-end of the website (the “head”) from the back-end (the “body”), which provides the e-commerce functionality. This allows for greater flexibility and customization, but can be more difficult to set up and manage.
What is an open source e-commerce platform?
Open source e-commerce platforms are those that allow you to access and modify the code for your website. This can be helpful if you want to add custom features or integrations to your site. An example of a popular open source platform is WooCommerce.
What is B2B e-commerce?
B2B e-commerce is the process of businesses selling products or services to other businesses online. This can include platforms such as Shopify that allow for B2B selling, as well as transaction-based marketplaces such as Alibaba.
Why do e-commerce sites fail?
An e-commerce site can fail for a number of reasons. A common reason is that the site was not able to generate enough traffic to sustain itself. Other reasons can include a lack of features or functionality, poor customer service or a lack of focus on marketing and SEO.
Information provided on Forbes Advisor is for educational purposes only. Your financial situation is unique and the products and services we review may not be right for your circumstances. We do not offer financial advice, advisory or brokerage services, nor do we recommend or advise individuals or to buy or sell particular stocks or securities. Performance information may have changed since the time of publication. Past performance is not indicative of future results.
Forbes Advisor adheres to strict editorial integrity standards. To the best of our knowledge, all content is accurate as of the date posted, though offers contained herein may no longer be available. The opinions expressed are the author’s alone and have not been provided, approved, or otherwise endorsed by our partners.
Kathy Haan, MBA is a former financial advisor-turned-writer and business coach. For over a decade, she’s helped small business owners make money online. When she’s not trying out the latest tech or travel blogging with her family, you can find her curling up with a good novel.
Kelly is an SMB Editor specializing in starting and marketing new ventures. Before joining the team, she was a Content Producer at Fit Small Business where she served as an editor and strategist covering small business marketing content. She is a former Google Tech Entrepreneur and she holds an MSc in International Marketing from Edinburgh Napier University. Additionally, she manages a column at Inc. Magazine.
Was this article helpful?
Send feedback to the editorial team
Thank You for your feedback!
Something went wrong. Please try again later.
(function() {
var openModalButton = document.querySelector('.rate-button');
var modal = document.querySelector('.feedback-modal-wrapper');
var closeButton = document.querySelector('.close-form-btn');
var formSubmitBtn = document.querySelector('#submitFeedback');
var ongoingFeedback = true;
function openArticleFeedbackModal(){
modal.classList.add('show-modal')
document.querySelector('body').classList.add('noscroll')
}
function closeArticleFeedbackModal(){
modal.classList.remove('show-modal')
document.querySelector('body').classList.remove('noscroll')
function formFeedbackSubmission(event){
event.preventDefault();
var userFeedbackForm = document.getElementById("userFeedbackForm");
var emailValue = userFeedbackForm.querySelector('#userFeedbackEmail').value;
var ninjaValue = userFeedbackForm.querySelector('#goNinjaValue').value;
var commentValue = userFeedbackForm.querySelector('#userFeedbackComment').value;
var identifier = userFeedbackForm.querySelector('#identifier').value;
var emailRegexPattern = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
The Forbes Advisor editorial team is independent and objective. To help support our reporting work, and to continue our ability to provide this content for free to our readers, we receive compensation from the companies that advertise on the Forbes Advisor site. This compensation comes from two main sources. First, we provide paid placements to advertisers to present their offers. The compensation we receive for those placements affects how and where advertisers’ offers appear on the site. This site does not include all companies or products available within the market. Second, we also include links to advertisers’ offers in some of our articles; these “affiliate links” may generate income for our site when you click on them. The compensation we receive from advertisers does not influence the recommendations or advice our editorial team provides in our articles or otherwise impact any of the editorial content on Forbes Advisor. While we work hard to provide accurate and up to date information that we think you will find relevant, Forbes Advisor does not and cannot guarantee that any information provided is complete and makes no representations or warranties in connection thereto, nor to the accuracy or applicability thereof. Here is a list of our partners who offer products that we have affiliate links for.
lorem
Are you sure you want to rest your choices?
var __cookieController = (function () {
function getSubDomain() {
var hostName = window.location.hostname;
if (!!hostName) {
var parts = hostName.split('.');
if (parts.length > 2) {
parts.shift();
}
hostName = parts.join('.');
}
return hostName;
}
/*
* Read a cookie value
* */
function get(name) {
var start = document.cookie.indexOf(name + "=");
var len = start + name.length + 1;
if ((!start) && (name !== document.cookie.substring(0, name.length))) {
return null;
}
if (start === -1) {
return null;
}
var end = document.cookie.indexOf(";", len);
if (end === -1) {
end = document.cookie.length;
}
var cookieVal = document.cookie.substring(len, end);
if (typeof filterXSS === 'function') {
cookieVal = filterXSS(cookieVal, {
stripIgnoreTagBody: true
});
}
return cookieVal;
}
/*
* Create a cookie for forbes.com dommain
* */
function set(name, value, expireInDays) {
var today = new Date(), path = '/', domain = '.' + getSubDomain();
today.setTime(today.getTime());
if (expireInDays) {
expireInDays = expireInDays * 1000 * 60 * 60 * 24;
}
var expireDate = new Date(today.getTime() + (expireInDays));
document.cookie = name + "=" + escape(value) +
((expireInDays) ? ";expires=" + expireDate.toGMTString() : "") +
((domain) ? ";domain=" + domain : "") +
((path) ? ";path=" + path : "");
}
return {
get: get,
set: set,
}
})();
var __helper = (function () {
/*
* Get Host name from url
* */
function getHostname(url) {
if (!!url) {
var link = document.createElement('a');
link.href = url;
return link.hostname;
}
return null;
}
/*
* Get Query Parameter
* */
function getQueryParameterValue(field, url) {
var href = url ? url : window.location.href;
var reg = new RegExp('[?&]' + field + '=([^]*)', 'i');
var string = reg.exec(href);
return string ? string[1] : null;
}
/*
* Checks for empty values
* Example : '' | "" | null | undefined | false
* */
function empty(val) {
return val === '' || val === null || typeof val == 'undefined' || val === false;
}
/*
* Generate values between two numbers exclusive of the range
* */
function getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min)) + min;
}
var __linkTrackingController = (function (__cookie, __util, __prefetch) {
var E2E_COOKIE_ADVISOR_USER_ID = 'fadve2etid';
var E2E_COOKIE_ADVISOR_USER_VISIT_COUNT = 'fadve2etidvcnt';
var E2E_COOKIE_ADVISOR_UTM = 'fadve2esrc';
var E2E_COOKIE_ORIGINAL_TID_PARAM = 'fadve2etid_oname';
var E2E_COOKIE_ORIGINAL_TID_VALUE = 'fadve2etid_oval';
var E2E_HOST = 'related.forbes.com';
var BANKRATE_HOST = 'oc.brcclx.com';
var POLICYGENIUS_HOST = "policygenius.go2cloud.org";
var CM_PREFIX_ID = '_spid';
var E2E_REDIRECT_URL = 'https://related.forbes.com/trf?o=gqT2vtgaO1NVU2O4ubzbbRKuqAIAh5jbhu-tB-B2XR9mkqq2r1uP3UQ86qlwjDTZcKefs9W1ct4iXHB8cr3Q5iQgynTrcq_Pg_eLRCaLJaHBM8WuHhRH8aWVp2KOcc_rsjl4oQeRfrNe3Dt5Tkj0_4KayhC_KRgY-2CxyWvgC5I=&p=qIZUfGF2w6pxNO0krbxBf2o-8MJII1YwehXZNXIUxHHkbrJRS564JaRaPyj7AKpp&r=';
var LINKSYNERGY_HOST = "click.linksynergy.com";
/*
* Generate a hash code from a string
* */
String.prototype.hashCode = function () {
var hash = 0;
if (this.length === 0) return hash;
for (i = 0; i < this.length; i++) {
char = this.charCodeAt(i);
hash = ((hash << 5) - hash) + char;
hash = hash & hash;
}
if (hash < 0)
return "N" + (hash * -1);
else
return "P" + hash;
};
/*
* Get Utm params Mapping
* */
function getUtmSourceClickIdParamMapping() {
return {
"outbrain": ["ob_click_id", "clickid", "OutbrainClickId", "outbrainclickid"],
"taboola": ["tcid"],
"bing": ["msclkid"],
"kw": ["fbclid"],
"facebook": ["fbclid"]
};
}
function getValidClickIdParams() {
return ["gclid"];
}
/**
* Returns object with parameter and value
* Example : ob_click_id=jfkjkfjskafjkj
* returns : { param: ob_click_id , value:jfkjkfjskafjkj }
*/
function getOgUtmParamValuePair() {
var trackingParamsObj = {
param: '',
value: ''
};
var utmSource = __util.getQueryParameterValue('utm_source');
if (!!utmSource) {
utmSource = utmSource.toLowerCase();
var utmParamMappinArray = getUtmSourceClickIdParamMapping();
if (!!utmParamMappinArray[utmSource] && utmParamMappinArray[utmSource].length > 0) {
for (var idx_param = 0; idx_param < utmParamMappinArray[utmSource].length; idx_param++) {
var idFromUrl = __util.getQueryParameterValue(utmParamMappinArray[utmSource][idx_param]);
if (!!idFromUrl) {
trackingParamsObj.param = utmParamMappinArray[utmSource][idx_param];
trackingParamsObj.value = idFromUrl;
break;
}
}
}
}
/**
* If no valid param mapping found in url check for valid click id
*/
if( ! trackingParamsObj.value && ! trackingParamsObj.param ){
/**
* Check for valid click ID in the url If found return the id and value
*/
var clickIdParam = getValidClickIdParams();
for(var i = 0; i < clickIdParam.length; i++){
var clickIdFromUrl = __util.getQueryParameterValue(clickIdParam[i]);
if(!!clickIdFromUrl){
trackingParamsObj.param = clickIdParam[i];
trackingParamsObj.value = clickIdFromUrl;
break;
}
}
}
return trackingParamsObj;
}
function generateHashFromOgParam(paramsObj) {
if (!!paramsObj.value && typeof paramsObj.value === 'string') {
var hashInput = paramsObj.value + new Date().getTime() + __util.getRandomInt(1, 99);
return hashInput.hashCode();
}
return '';
}
/**
* This function return user id
* If found in cookie returns the cookie value
* If not found in cookie generated a user id
* If og params are invalid return empty string
*/
function getUserIdHashFromOgParam() {
var hash = '';
var paramsObj = getOgUtmParamValuePair();
if (!!paramsObj.param && !!paramsObj.value) {
var paramFromCookie = __cookie.get(E2E_COOKIE_ORIGINAL_TID_PARAM);
var paramValueFromCookie = __cookie.get(E2E_COOKIE_ORIGINAL_TID_VALUE);
//Get user id from cookie if found
if (
!!paramFromCookie &&
!!paramValueFromCookie &&
paramsObj.param === paramFromCookie &&
paramsObj.value === paramValueFromCookie
) {
var userIdFromCookie = __cookie.get(E2E_COOKIE_ADVISOR_USER_ID);
if (!!userIdFromCookie){
hash = userIdFromCookie;
}
}
//If user id is not present in cookie generate one
if (!hash) {
hash = generateHashFromOgParam(paramsObj);
}
}
window.dataLayer.push({
'cd': {
'OriginalTrackingParam': paramsObj.param,
'OriginalTrackingParamValue': paramsObj.value,
}
});
return hash;
}
/*
* Get Default User ID Hash
* returns hash : P74473637
* */
function getDefaultUserIdHash() {
var userid = 'NOTID' + new Date().getTime() + __util.getRandomInt(1, 99);
return userid.hashCode();
}
/**
* Tid From Utm Param
* */
function getUserIdHashForPartnership(){
var userid = '';
var partnershipMap = {
partnership:'P'
};
var utmMediumParam = __util.getQueryParameterValue('utm_medium');
//generate new user id
if(!!utmMediumParam && partnershipMap.hasOwnProperty(utmMediumParam)){
userid = getDefaultUserIdHash();
userid = userid + partnershipMap[utmMediumParam];
userid = userid.toUpperCase();
}
return userid;
}
/*
* Get Unique Hash
* returns numeric 9 digit value: 187654367
* */
function getUniqueId(suffix) {
suffix = suffix || '';
var rand = __util.getRandomInt(100000000, 999999999);
var timestamp = (suffix.toUpperCase() + Math.round((new Date()).getTime() / 1000));
return timestamp.concat(rand);
}
/**
* Add a query string to url
*/
function addQueryString(param) {
var url;
if (param.hasOwnProperty('url') && !__util.empty(param.url)) {
url = param.url;
}
if (param.hasOwnProperty('parameterName') && !__util.empty(param.parameterName) && param.hasOwnProperty('parameterValue') && !__util.empty(param.parameterValue)) {
if (url.indexOf(param.parameterName) !== -1 && param.hasOwnProperty('override') && param.override === true) {
var tidFromurl = __util.getQueryParameterValue(param.parameterName, url);
url = url.replace(param.parameterName + '=' + tidFromurl, param.parameterName + '=' + param.parameterValue);
} else {
//if parameter is not found
if (url.indexOf('?') !== -1) {
url = url + '&' + param.parameterName + '=' + param.parameterValue;
} else {
url = url + '?' + param.parameterName + '=' + param.parameterValue;
}
}
}
return url;
}
/**
* @param link
* @param attributes
*/
function setAttributesToLink(link, attributes) {
if (!!link && typeof attributes === 'object') {
for (var prop in attributes) {
if (attributes.hasOwnProperty(prop) && !!attributes[prop]) {
link.setAttribute(prop, attributes[prop]);
}
}
}
return link;
}
function prefixIdentifierToUserId( userid ){
// Check if user id already has required prefix
var isPrefixed = /(DV|MX|FA)/.test(userid);
if( !isPrefixed ) {
var utmMatch = window.location.href.match(/utm_source=(dv|max|fa)/i);
if( !!utmMatch ) {
var utmPrefixMapping = {
dv: "DV",
max: "MX",
fa: "FA"
};
var matchedSource = utmMatch[1].toLowerCase();
userid += utmPrefixMapping[matchedSource];
}
}
return userid;
}
/**
* Appends tracking ID to provided url
* Checks for topics | bankrate url
* @param url
* @param hostName
* @param trackingId
*
* @return string
*/
function appendTrackingId(url, hostName, trackingId) {
var urlWithTrackingID;
if (E2E_HOST === hostName) {
var affiliateLink = __util.getQueryParameterValue('r', url);
if (!!affiliateLink) {
affiliateLink = decodeURIComponent(affiliateLink);
affiliateLink = addQueryString({
url: affiliateLink,
parameterName: 'tid',
parameterValue: trackingId,
override: true,
});
urlWithTrackingID = E2E_REDIRECT_URL + encodeURIComponent(affiliateLink) + CM_PREFIX_ID;
urlWithTrackingID += window._isRouteM ? '&extPrvL1=1&requrl='+encodeURIComponent(window.location.href) : '';
}else{
urlWithTrackingID = url;
}
} else if (BANKRATE_HOST === hostName) {
url = addQueryString({
url: url,
parameterName: 'tid',
parameterValue: trackingId,
override: true,
});
urlWithTrackingID = E2E_REDIRECT_URL + encodeURIComponent(url) + CM_PREFIX_ID;
urlWithTrackingID += window._isRouteM ? '&extPrvL1=1&requrl='+encodeURIComponent(window.location.href) : '';
} else if (LINKSYNERGY_HOST === hostName) {
urlWithTrackingID = addQueryString({
url: url,
parameterName: 'u1',
parameterValue: trackingId,
override: true,
});
}
else if (POLICYGENIUS_HOST === hostName) {
urlWithTrackingID = addQueryString({
url: url,
parameterName: 'aff_click_id',
parameterValue: '',
override: true,
});
}
else {
urlWithTrackingID = url;
}
return urlWithTrackingID;
}
/*
* Get User Id Hashcode
* */
function getUserIdHash() {
var userid = '';
//Get Tid From Url
var tidFromUrl = __util.getQueryParameterValue('tid');
if (!!tidFromUrl) {
userid = tidFromUrl;
}
//Get Tid for partnership
var tidForPartnership = getUserIdHashForPartnership();
if (!!tidForPartnership) {
userid = tidForPartnership;
}
//Generate hash from if og parameter is found in url
var userIdHashFromUrl = getUserIdHashFromOgParam();
if (__util.empty(userid) && !!userIdHashFromUrl) {
userid = userIdHashFromUrl;
}
//Read user id from cookie if found
if (__util.empty(userid)) {
userid = __cookie.get(E2E_COOKIE_ADVISOR_USER_ID);
}
//Generate a new user id
if (__util.empty(userid)) {
userid = getDefaultUserIdHash();
}
// Prefix userid if post belongs to 'paid_m' CPT
if( window._isRouteM ) {
return prefixIdentifierToUserId( userid );
}
return userid;
}
//get user id hash
var USER_ID_HASH = getUserIdHash();
function getUtmSource(ogParamObj) {
var utmSource = '';
var clickIdUtmSourceMapping = {
"gclid": "google"
};
if(!!clickIdUtmSourceMapping[ogParamObj.param]){
utmSource = clickIdUtmSourceMapping[ogParamObj.param];
}else{
utmSource = __util.getQueryParameterValue('utm_source');
}
return utmSource;
}
/**
* Set Cookie Values
* fadve2etid = USERID | Generated from Client Side script
* fadve2etidvcnt = 1 | Increments on every page refresh
* fadve2esrc = utm_source
* fadve2etid_oname = gclid
* fadve2etid_oval = fjdalskff78gsf78asfsf7as6f7as
*/
function setCookie() {
//Get user id Hash
var userIDHash = USER_ID_HASH;
//Number of days to store cookies
var DAYS = {
TWENTY_YEARS: 365 * 20,
THIRTY: 30,
ZERO: 0
};
//Get userid from cookie
var userIdFromCookie = __cookie.get(E2E_COOKIE_ADVISOR_USER_ID);
/**
* Set Cookie Values
* If cookie is not present then create one
* If the value of userIDHash is different from the cookie value than update the value
*/
if (__util.empty(userIdFromCookie) || userIDHash !== userIdFromCookie) {
//create cookie for userid
__cookie.set(E2E_COOKIE_ADVISOR_USER_ID, userIDHash, DAYS.TWENTY_YEARS );
//set user visit count
__cookie.set(E2E_COOKIE_ADVISOR_USER_VISIT_COUNT, 1, DAYS.ZERO);
var ogParamObj = getOgUtmParamValuePair();
//set og param Example: og_click_id
if (ogParamObj.hasOwnProperty('param') && !__util.empty(ogParamObj.param)) {
__cookie.set(E2E_COOKIE_ORIGINAL_TID_PARAM, ogParamObj.param, DAYS.THIRTY);
}
//set og param value
if (ogParamObj.hasOwnProperty('value') && !__util.empty(ogParamObj.value)) {
__cookie.set(E2E_COOKIE_ORIGINAL_TID_VALUE, ogParamObj.value, DAYS.THIRTY);
}
//set utm source if exist
var utmSource = getUtmSource(ogParamObj);
if (!__util.empty(utmSource)) {
__cookie.set(E2E_COOKIE_ADVISOR_UTM, utmSource, DAYS.THIRTY);
}
} else {
//get user visit count
var userVisitCount = __cookie.get(E2E_COOKIE_ADVISOR_USER_VISIT_COUNT);
userVisitCount = parseInt(userVisitCount);
userVisitCount = isNaN(userVisitCount) ? 1 : (userVisitCount + 1);
//set incremented visitor count
__cookie.set(E2E_COOKIE_ADVISOR_USER_VISIT_COUNT, userVisitCount, DAYS.ZERO)
}
}
/**
* Set Tracking Values (?tid=USERID_UNIQUEID) for all bankrate urls
* Set Link Attributes rel="nofollow" & target="_blank"
*/
function getTrackingIdHash() {
var hashes = {};
var uniqueIdHash = ( window._isRouteM ) ? getUniqueId('d') : getUniqueId('c');
hashes.uid = uniqueIdHash;
hashes.tid = USER_ID_HASH + '_' + uniqueIdHash;
return hashes;
}
/**
* Set Tracking Values (?tid=USERID_UNIQUEID) for all bankrate urls
* Set Link Attributes rel="nofollow" & target="_blank"
*/
function setTrackingId(elSelector) {
var elementSelector = elSelector || 'body a';
var links = document.querySelectorAll(elementSelector);
if (links.length > 0) {
for (var x = 0; x < links.length; x++) {
var link = links[x];
var url = link.getAttribute('href');
//get hostname
var hostName = __util.getHostname(url);
if (!!url && !!hostName && (hostName === E2E_HOST || hostName === BANKRATE_HOST || hostName === POLICYGENIUS_HOST || hostName === LINKSYNERGY_HOST)) {
if( hostName !== POLICYGENIUS_HOST ) {
__prefetch.init(link);
}
//Generate Tracking ID
var idsObj = getTrackingIdHash();
//append tracking id
url = appendTrackingId(url, hostName, idsObj.tid);
//set tracking attributes
link = setAttributesToLink(link, {
"href": url,
"rel": "nofollow noopener",
"target": "_blank",
"data-uid": USER_ID_HASH,
"data-cid": idsObj.uid,
"data-tid": idsObj.tid,
});
}
}
}
}
return {
setCookie: setCookie,
setTrackingId: setTrackingId,
getUserIdHash: getUserIdHash,
USER_ID_HASH: USER_ID_HASH,
getUniqueId: getUniqueId,
getTrackingIdHash: getTrackingIdHash
}
})(__cookieController, __helper, __linkprefetch);
//set cookie values
__linkTrackingController.setCookie();
function detectIsIE(){
var ua = window.navigator.userAgent;
var msie = ua.indexOf("MSIE ");
// IE browser check
if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) {
return true;
}
return false;
}
document.addEventListener('DOMContentLoaded', function () {
//set user id
__linkTrackingController.setTrackingId();
var event;
// The 'new Event' code is not supported in IE so update code for IE
if(detectIsIE()){
event = document.createEvent('Event');
event.initEvent('tidSet', true, true);
} else{
event = new Event('tidSet');
}