Welcome to the comprehensive guide on managing bulk data in RebelMouse through importing.
This article explains how to import your online content, like images, posts, and significant sections, to ensure your most essential documents stay the same when you move from your previous content management system (CMS) to RebelMouse.
Before going through our tutorial, please ensure that you've read our previous documentation first: Set up Your Import Files. It will help you make sense of the importing process and ensure that your data is streamlined for success!
The following are the types of imports you can complete and the objects that are supported:
You can createand updateUsers and Posts
You can create, but not update, Sections and Images
Steps:
Getting Started
Upload File or Choose Feed
Mapping Step
One-to-One Mapping
Code Mapping (Advanced)
Reusing the Most Used Functions
Reusing the Same Mapping
Ready With Your Mapping? Move to Validate
Let's Import
Getting Started
Once you've exported the data from your previous CMS and you've set up your files in the expected format, follow the instructions below to import into RebelMouse:
Go to your Importer Dashboard by entering yourdomain.com/r/tasks/importer in your web browser's URL address bar.
Once there, you will see the following screen:
You can choose any of the available objects to start the import process. As we mentioned in our previous setup article, we suggest starting with images.
In this example, we'll start with images:
Upload File or Choose Feed
You have two options to import data from:
Uploading a File
Using a Feed
Review the requirements and technical limits for any limitations.
Upload File
In this step you can choose to upload one of your files by clicking on the blue area. If your file is properly formatted (not broken), then once the file has been uploaded you will see the following green screen:
If you select the option to import from a feed URL, you will need to add the details of the feed you want to pull data from:
URL path for the feed
Pagination param (optional)
Pagination type is either offset or page
Basic Auth User (if any)
Password (if any)
Note: Offset pagination involves specifying a numerical offset to start retrieving data from a certain position in a dataset, allowing you to fetch a specific number of items after that offset.
For example, if you have a list of 100 items and you set an offset of 20, you would then retrieve items 21–40.
Page pagination divides the dataset into fixed-size pages, and users request specific pages to navigate through the data in a structured manner.
For example, if you have a list of 100 items and the pagination is set to be pages of 20 items each, you would find items 21–40 by adding "page=2" as a parameter.
Mapping Step
Once your file has been successfully uploaded, or your URL feed has been validated, it's time to move on to mapping:
Goal: The goal of this step is to map each property (field) coming from the original input source (i.e., the feed you've connected or the file you've uploaded) to the RebelMouse-accepted format for each object.
This can be achieved using two different methods:
One-to-One Mapping: This is where one field is mapped directly to another field. This assumes that the property you are mapping to has the same property type as the RebelMouse destination property, and that it's ready to be imported as is.
Code Mapping (Advanced): This uses simple JavaScript code to transform the input property into the RebelMouse-accepted format as needed.
For this goal to be achieved, we have three main areas on the screen you need to use:
Input Properties (left area)
The area on the left will contain a random sample of 20 records that were pulled from the files you've uploaded or the URL feed you've chosen to help visualize and configure the mapping.
Object Properties (middle area): Actual Mapping
The area in the middle is where you will define if you want to use the One-to-One Mapping or Code Mapping method, and which input field (or fields) will be mapped to which RebelMouse property.
Preview Area (right area)
Once you perform your mapping in the middle area, you can then click on the Preview All Fields button to see a preview of what the destination object will look like for your sample records.
Let's work through some examples.
One-to-One Mapping
Example: Simple Image CSV
Import images using One-to-One Mapping.
Imagine a CSV file that looks like the following:
After importing it and reaching the mapping step, the screen will look like this:
We'll only map Image_url (since it's required) and alt text:
Click the Preview All Fields button to view the entire property layout.
What happens if the data is not prepared for importing, or is a different file type than what the destination accepts? In that case, you will need to use Code Mapping.
Code Mapping (Advanced)
To access Code Mapping , click Choose a Tool and then Code:
That will open up the TypeScript/JavaScript code editor as shown below:
Using the same example above, where the input field has been prepared and specified for a particular RebelMouse property, we can replicate the One-to-One Mapping's results as follows:
Here's the same approach in GIF format:
It's important to note that:
Each code area already tells you which data type it expects:
In this case, image_url needs to use the data type "string."
And if you return a different data type, the code will let you know:
In this example, Type "number" is not assignable to type "string."
Now, let's try a harder example.
Code Mapping (Advanced)
In this example, we have a CSV file that contains only one column: image_tags. And it also contains all of the information we need for our mapping, such as image_url, alt text, caption, etc.
So when we upload it, it looks like this:
As a result, we'll want to use code to extract the image URL and the image alt text from the HTML string coming from the input property image_tags.
The way to do that is as follows:
You can create any JavaScript function (returnImgSrc) that handles the task you need. To strip the first src URL from an HTML string, you can call it from inside the transformation function, where you then pass the value of the input to it.
If no errors are displayed, you can then test the results by previewing them by clicking the Preview All Fields button:
Note: You can use as many input fields as you want, including the entire input object. You can also call as many functions as you need.
Important Limitations
You cannot use external libraries or DOM libraries.
You can only use Vanilla JavaScript. So for HTML transformations, we recommend you use RegEx.
You are not allowed to do external HTTP requests.
Reusing the Most Used Functions
If you're not a JavaScript developer, don't worry! We've got you covered with JavaScript 101. We can assist you on how to perform basic operations.
Reusing the Same Mapping
If you have a large import task, preparing your data may take some time.
Don’t worry though, because we have a feature that enables you to easily download or upload your mapping work. This way you can save your progress and pick up where you left off later. It also allows you to share the work with different colleagues.
And finally, if you have a blocker and need RebelMouse's support team to assist you, please send over both the object file (e.g., users, images) that you're importing and the related mapping file to support@rebelmouse.com.
To download your current mapping, click the download arrow icon. To upload a saved mapping, lick the upload arrow icon.
Ready With Your Mapping? Move to Validate
The validation step ensures that your uploaded data is properly structured and all of the transformations you've specified in the previous step work well. If any data record doesn't conform as needed, such as a field having an incorrect or untreated data type that disrupts the mapping logic, an error will appear to prevent import problems.
If you encounter an error during the validation step, we recommend that you download the error CSV and try to understand how to fix the flagged issue before continuing to import.
Let's Import
If the validation process goes smoothly and there are no errors, you're good to proceed with the import step. During import, we transfer your carefully prepared, mapped, and transformed data to RebelMouse through our public API. Should any issues arise during this phase, it may be due to API limitations. You can find additional information about API limits in our documentation located at https://apis.rebelmouse.dev.
Please note that handling large files may extend the process duration. You can monitor progress on the initial import page, and once the import is complete, it will be visible in the import history section.
Our platform is a complete digital publishing toolbox that's built for modern-day content creators, and includes game-changing features such as our:
Why RebelMouse?
Unprecedented Scale
RebelMouse sites reach more than 120M people a month, with an always-modern solution that combines cutting-edge technology with decades of media savvy. And due to our massive scale, 1 in 3 Americans have visited a website powered by RebelMouse.
120M+ Users
550M+ Pageviews
17+ Avg. Minutes per User
6+ Avg. Pages per User
Today's Top Websites Use RebelMouse
Thanks to the tremendous scale of our network, we are able to analyze a wealth of traffic data that informs our strategies and allows us to be a true strategic partner instead of just a vendor.
What Clients Say
We’re here to help you weigh and understand every tech and strategic decision that affects
your digital presence. Spend less time managing everything yourself, and more time focused on
creating the quality content your users deserve.
From start to finish,
RebelMouse blasted away our expectations!
Kelley Beaucar Vlahos
Editorial Director
Responsible Statecraft
RebelMouse
brings the strengths of a large publisher (large datasets, expertise, lessons learned from trial and error, close
relationships with search and ad platforms) to smaller publishers. During the build and launch, the team went above
and beyond to ensure we were happy with the new site, and
they flawlessly migrated over 20,000 articles. I can't recommend them highly enough.
Ryan Koo
CEO
No Film School
I love the control panel. Awesome work. I have to say, what an amazing creative team RebelMouse is. I am so grateful!
Terrence O'Hanlon
Founder and Chairman
Reliabilityweb
It’s like we’ve been riding horses to commute all our lives and someone just showed us a Tesla.
Brendan Farley
Vice President, Product Management
Strada Education Network
Thanks to RebelMouse, United doesn’t have to sacrifice great content for speed. You can have both!
Ryan Bujeker
Director, Social Media Strategy & Digital Engagement
United Airlines
We're in a much better position to make it through the current crisis in part due to RebelMouse and their platform.
We've not only saved on overhead costs, we've more easily optimized our traffic with their smart measuring and SEO
tools, as well as their social integrations.
Jill Braff
President/Chief Operating Officer
Brit + Co
THANK YOU for all the good, fast work you put into making our public rollout such a big success. I know we threw a lot
at you very quickly, but you were calm under pressure and pulled it all off perfectly. Very glad to be working with
you all.
Tim Grieve
Executive Editor
Protocol
So inspired and impressed by these results from RebelMouse. Check them out and ask Andrea Breanna how they got there!
Just goes to show that spending millions doesn't necessarily get you to the right destination. It's spending no more
than you need on the right technology with the right platform that does! 🌐💙🏎️
Andrey Lipattsev
Partner Development Manager
Google
It is not often I jump out of my chair and scream in a positive way, but I just did! This is the happiest I have seen
my Managing Editor in 2021! Thank you.
Nick Smith
CEO
Investing News Network
Working with RebelMouse is an actual treat. From the CEO down, every single member of the team has partnered with us
to meet our needs. Everyone willingly (and with endless patience!) shares their expertise and insights to ensure we
optimize search and create a great audience experience. As we have implemented the various search tactics, positive
results are almost instantaneous. Training our content creators has been simple. The system is incredibly user
friendly. As a co-worker commented, "RebelMouse doesn't just sell you something, they partner with you to deliver
exactly what you want." I couldn't agree more!
Emma Schofield
Director of Change Management
Investing News Network
We continue to be huge fans of RebelMouse and envision a very long-term relationship with the platform. The service
has been impeccable.
Douglas Fischer
Executive Director
Environmental Health News
I am a HUGE RebelMouse fan, and basically tell everyone I meet who's looking to overhaul their website to get in touch
right away.
Susan Hassler
Editor Emeritus
IEEE Spectrum
Every member of the RebelMouse team, but especially our project team, are superstars! Our site launch on the platform
met all our expectations and we love the technology. We are positive about the future of our site and look forward to
improving our approaches and processes with RebelMouse's guidance!
Terrence O'Hanlon
Founder and Chairman
Reliabilityweb
RebelMouse's Layout & Design Tool is one of the most comprehensive and flexible tools I have ever used of any CMS.
Their product team is also extremely helpful and constantly supports to make sure your properties are up to date and
use the best industry standards, especially in terms of page speed.
Chuck Lapointe
CEO
Narcity Media
The best thing about RebelMouse is how much they care about their customers. When working with them, I always get a
sense that they go above and beyond for their customers. When working with the RebelMouse team, I very much consider
them to be a partner, rather than just a vendor. Upon migrating to their technology, we have seen tremendous
improvements in many key areas, particularly technical SEO. They have out-of-the-box functionality that is
tremendously helpful to customers. At the same time, their system is flexible enough to allow us to adapt it to any
new business needs that we have.
David Nguyen
Senior Director of Digital Marketing
Investing News Network
RebelMouse has shepherded us through the modernization phase, and has been keen, practical, and nimble throughout the
entire journey. They have helped modernize our website through an infinite scroll setup that allows us more
advertising real estate while creating more time on site to capture reader engagement. Plus, the RebelMouse team has
helped educate our own team on the various aspects of programmatic advertising and worked to best implement them.
Premier Guitar joining forces with RebelMouse in 2020 was one of the best choices we could have made!
Luke Viertel
Digital Strategist
Premier Guitar
RebelMouse has stepped up our content management process by providing a user-friendly interface, robust customization
options, and seamless collaboration tools. The platform's analytics and reporting capabilities have empowered us to
make data-driven decisions, while their exceptional customer support ensures any issues are promptly addressed in a
professional, respectful, and friendly way!
RebelMouse employs a unique, diverse, and decentralized team that consists of 70+ digital traffic experts across more than 25 different countries. We have no central office, and we cover every time zone to ensure that we’re able to deliver amazing results and enterprise-grade support around the clock.
Our team is well-versed in all things product, content, traffic, and revenue, and we strategically deploy ourselves to help with each element across all of our clients. We thrive on solving the complex.